小编Sha*_*nny的帖子

错误:无法解析:com.android.support:appcompat-v7:29.0.0

我已经安装了 android 3.4.1,之后我正在设置我的 android sdk 29,然后停止并显示此错误。

错误:无法解决:com.android.support:appcompat-v7:29.0.0 能否请您帮帮我。

构建 gradle 模块应用插件:'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.0"
    defaultConfig {
        applicationId "com.example.testing"
        minSdkVersion 15
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:29.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
Run Code Online (Sandbox Code Playgroud)

构建gardle项目

 // Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories …
Run Code Online (Sandbox Code Playgroud)

android gradle

12
推荐指数
1
解决办法
4万
查看次数

标签 统计

android ×1

gradle ×1