相关疑难解决方法(0)

Android Studio - 无法应用插件[id'com.android.application']

我正在开发一款应用.在我的应用程序中,代码中没有错误,但是当我尝试运行我的项目时,它会出现以下错误.

错误:(1,1)评估项目':app'时出现问题.

无法应用插件[id'com.android.application']

无法创建"AppPlugin"类型的插件.

我试试这个也是Gradle发出错误"无法创建'AppPlugin'类型的插件'"

这也是Android Studio中的Gradle错误

以下是我的build.gradle文件

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {

    compileSdkVersion 23
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.praval.healthfreak"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'

    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.google.android.gms:play-services:8.3.0'
    compile 'de.hdodenhof:circleimageview:1.3.0'
    compile 'com.android.support:design:23.2.1'
    compile files('libs/YouTubeAndroidPlayerApi.jar')

}
Run Code Online (Sandbox Code Playgroud)

android android-gradle-plugin

46
推荐指数
8
解决办法
7万
查看次数

在 Android Studio 3.6.1 上构建应用程序期间的警告

我刚刚更新了 Android studio 3.6.1,在构建我的应用程序时,我收到了以下警告:

配置项目:app 警告:以下项目选项已弃用并已删除: android.enableUnitTestBinaryResources 单元测试功能的原始资源已删除。

这是关于什么警告以及如何删除它?

android android-studio-3.6

16
推荐指数
1
解决办法
2697
查看次数