【发布时间】:2019-03-27 10:17:38
【问题描述】:
看到这个link(我怀疑)有 POM 文件但没有 jar。
重要提示:
- 我目前正在使用 latest 版本的 react native ... v0.57.3 以及 latest 版本的 react-native-cli ... v2.0.1。
- 我的计算机中安装了 Java 11。
- 我此时正在使用latest gradle release ... v4.10.2
- 我正在使用 Mac OSX Mojave
分发网址是:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
这是错误
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'AwesomePlacesApp'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.3.1/aapt2-proto-0.3.1.jar
【问题讨论】:
-
您在项目中尝试过任何升级吗?
-
哪种类型的升级@KosalramRamaKrishnan ? ... FWIW,我刚刚编辑了我正在使用最新版本的 react native 和 react native cli 的评论 ...它是一个新项目 ...
-
遇到了同样的错误。如果你点击链接,你会得到一个 404。我想我们必须等到 jcenter 解决它。
-
@Harry 我怀疑您使用的 SDK 版本可能不兼容。缺少 jar 文件通常会发生很多。只需在 Android Studio 中打开您的项目,它就会根据您在项目中使用的新版本重新构建您的项目。如果问题仍然存在,请告诉我。
-
也许这会有所帮助:stackoverflow.com/a/52944600/4255978
标签: android android-studio react-native jcenter aapt2