Android 辅助编译&x27;支持:appcompat-v7:&x2B';
我在AIDE上编译com.android.support:appcompat-v7:+'时遇到问题。Android 辅助编译&x27;支持:appcompat-v7:&x2B';,android,compilation,android-appcompat,aide,Android,Compilation,Android Appcompat,Aide,我在AIDE上编译com.android.support:appcompat-v7:+'时遇到问题。 apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.0" defaultConfig { application "com.mycompany.myapp" minSdkVersion 14 targetSdkVersion 21 versionCode
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.0"
defaultConfig {
application "com.mycompany.myapp"
minSdkVersion 14
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.android.support:support-v4:+'
compile 'com.android.support:appcompat-v7:+'
}
错误
Dependency com.android.support:appcompat-v7:+ not found.
我在Stack Overflow上搜索了其他与AIDE有相同问题的人,但没有找到任何结果。最终找到了答案,因为我的存储库中没有包含mavenCentral()
allprojects {
repositories {
jcenter()
mavenCentral()
}
}关于你为什么不应该那样做