Questions tagged «jcenter»

4
Android buildscript存储库:jcenter VS mavencentral
我上一次使用Android Studio时,它生成.gradle带有mavencentral()buildscript存储库的文件,而现在有了jcenter()。 任何人都可以解释与此有关的问题。还有其他回购吗?我们什么时候应该切换它们?它们对项目,模块,库有什么影响?Android开发人员还有其他必需品吗? 谁负责维护这些存储库?

15
无法为Flutter项目找到lint-gradle-api-26.1.2.jar
我是Flutter的新手,尝试在创建新项目时运行示例项目。尝试运行它时,出现以下问题: 失败:生成失败,发生异常。 其中:构建文件“ PROJECTPATH / android / app / build.gradle”行:25 出了什么问题:评估项目':app'时发生问题。 无法解析配置“ classpath”的所有文件。找不到lint-gradle-api.jar(com.android.tools.lint:lint-gradle-api:26.1.2)。在以下位置搜索:https : //jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar 我了解它正在尝试从jcenter存储库中获取文件“ lint-gradle-api-26.1.2.jar”,但是当您点击链接时,我得到的是: { "errors" : [ { "status" : 404, "message" : "Could not find resource" } ] } 因此,我在build.gradle文件中添加了Google存储库: buildscript { repositories { maven { url 'https://dl.google.com/' } google() jcenter() } ...而且我也通过以下链接成功获取了文件: https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar ...但是无论是通过使用Visual …
107 android  dart  flutter  jcenter 

9
Android Studio 3.2.1升级后的构建错误
我正在从Udacity构建一个示例项目。到现在为止,这个工作还不错,但是在升级到Android Studio 3.2.1之后,我遇到了以下构建错误。 摇篮版本:4.6 项目链接:https : //github.com/udacity/ud851-Sunshine/tree/student/S02.02-Solution-Menus Could not find com.android.tools.build:aapt2:3.2.1-4818971**. Searched in the following locations: file:/C:/Users/sandeepk2/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971.pom file:/C:/Users/sandeepk2/AppData/Local/Android/Sdk/extras/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971-windows.jar file:/C:/Users/sandeepk2/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971.pom file:/C:/Users/sandeepk2/AppData/Local/Android/Sdk/extras/google/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971-windows.jar file:/C:/Users/sandeepk2/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971.pom file:/C:/Users/sandeepk2/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971-windows.jar https://jcenter.bintray.com/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971.pom https://jcenter.bintray.com/com/android/tools/build/aapt2/3.2.1-4818971/aapt2-3.2.1-4818971-windows.jar Required by: project :app 我该如何解决?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.