小编San*_*jhi的帖子

'错误:无法解决:com.android.support:appcompat-v7:29.0.1'

我想尝试Intellij平台进行android开发,但是即使重新启动它也显示gradle失败。请帮忙。

我试图调整线

implementation 'com.android.support:appcompat-v7:29.+'
Run Code Online (Sandbox Code Playgroud)

到其他版本,但无济于事。

这是我的模块级gradle

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.1"
    defaultConfig {
        applicationId "com.example.myapplication"
        minSdkVersion 23
        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.+'
    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)

这是我的项目级别Gradle

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

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

android intellij-idea build-tools gradle appcompatactivity

5
推荐指数
1
解决办法
1285
查看次数