我在Bitbucket CI服务器上构建失败:
> 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
Run Code Online (Sandbox Code Playgroud)
我搜索了类似的问题,表明Google Maven存储库丢失了,但我并没有错过它.顶级构建文件:
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
Run Code Online (Sandbox Code Playgroud)
和我的应用程序级别构建文件:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
google()
}
dependencies {
classpath 'io.fabric.tools:gradle:1.26.1'
}
}
apply plugin: 'com.android.application'
apply plugin: …Run Code Online (Sandbox Code Playgroud) 我的系统突然关闭,我打开它,我得到错误:无法解决:android.arch.core:常见:我的android工作室1.1.0错误.我尝试过清理和重建项目,但它没有用.我在互联网上进行了研究,但没有一个能解决我的问题.
建立.gradle这个(项目)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://jitpack.io'
}
maven {
url "https://maven.google.com"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)
的build.gradle(APP)
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "27.0.1" …Run Code Online (Sandbox Code Playgroud) 我已经将Android Studio更新为3.2.1,现在停止了这个问题:无法找到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
我试图重新排序我的build.gradle文件.不过,你可以在这里找到附件.
我已经尝试了所有的解决方案.
我正在按照本教程在meta react的本机应用程序中集成 Fabric crashlytics.但是在安装Fabric软件包之后,我试着在app上吃午饭,我收到了这个错误:react-native install react-native-fabricnpm run android
配置项目':react-native-fabric'时出现问题.
无法解析所有配置文件':react-native-fabric: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
我的build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "27.0.3"
minSdkVersion = 16
compileSdkVersion = 27
targetSdkVersion = 26
supportLibVersion = "27.1.1"
googleServicesVersion = "17.1.0"
}
repositories {
maven { url 'https://maven.fabric.io/public' }
maven {
url 'https://maven.google.com/'
name 'Google'
}
google()
jcenter()
}
dependencies {
classpath …Run Code Online (Sandbox Code Playgroud)