【问题标题】:AIDE compile 'com.android.support:appcompat-v7:+'AIDE 编译 'com.android.support:appcompat-v7:+'
【发布时间】:2017-05-06 21:31:50
【问题描述】:

我在 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 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 有相同问题的人,但无济于事。

【问题讨论】:

标签: android compilation android-appcompat aide


【解决方案1】:

终于弄明白了,我的存储库中没有包含 mavenCentral()。

allprojects {
repositories {
    jcenter()
            mavenCentral()
}

}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-28
    • 2015-10-27
    • 1970-01-01
    相关资源
    最近更新 更多