相关疑难解决方法(0)

Android Studio构建错误 - "无法解析:监视器"

我有一个以前运行的项目,其中版本升级到最新版本.现在由于下面的构建错误,我无法构建项目.

无法解决:监视
打开文件

"打开文件"链接指向build.gradle(Module)文件.我试过"无效并重新启动"这没有用.

在"无法解决:监视器"或"无法解决:"下搜索未导致任何解决方案.

在这一点上我完全被难住了.

模块:build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    buildToolsVersion '28.0.3'

    defaultConfig {
        applicationId "com.example.android.sunshine"
        minSdkVersion 14
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
        }
    }
    productFlavors {
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0'

    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support:preference-v7:28.0.0'

    androidTestImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support:support-annotations:28.0.0'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test:rules:1.0.2'
}
Run Code Online (Sandbox Code Playgroud)

android gradle android-studio

3
推荐指数
1
解决办法
2950
查看次数

标签 统计

android ×1

android-studio ×1

gradle ×1