简体   繁体   English

由于插件 com.android.application 启动失败

[英]startup failed due to plugin com.android.application

Since i updated the android studio i am getting error自从我更新了 android studio 后,我收到了错误

ERROR: startup failed: build file 'C:\Users\Personal\AndroidStudioProjects\VoiceAssistant\app\build.gradle': 1: unexpected char: 0x0 @ line 1, column 3. �� applyplugin: ' co m.错误:启动失败:构建文件 'C:\Users\Personal\AndroidStudioProjects\VoiceAssistant\app\build.gradle': 1: unexpected char: 0x0 @ line 1, column 3. applyplugin: ' com. androi d.安卓。 application ' ^申请'^

1 error 1 个错误

my gradle file我的毕业档案

     apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    buildToolsVersion "28.0.0"
    defaultConfig {
        applicationId "com.example.personal.voiceassistant"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.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'
    implementation 'com.google.android.gms:play-services:12.0.1'
}

Try invalidate cache and restart in Android Studio.尝试使缓存无效并在 Android Studio 中重新启动。

Click on File -> Invalidate Cache and Select Invalidate and Restart.单击文件 -> 使缓存无效并选择无效并重新启动。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修复Gradle同步失败“找不到ID为'com.android.application'的插件”? - How Can I fix Gradle sync failed “Plugin with id 'com.android.application' not found”? Android Studio:找不到ID为“ com.android.application”的插件 - Android Studio: Plugin with id 'com.android.application' not found SafePassmaster --->错误:(1、0)找不到ID为'com.android.application'的插件 - SafePassmaster ---> Error:(1, 0) Plugin with id 'com.android.application' not found 发生评估根项目> com.android.application找不到插件 - occurred evaluating root project > plugin with com.android.application not found gradle 找不到 ID 为“com.android.application”的构建错误插件 - gradle build error Plugin with id 'com.android.application' not found 未找到 ID 'com.android.application' 的问题 - Problem with id 'com.android.application' not found 尝试导入库并最终找到ID为'com.android.application'的插件 - Tried importing a library and ended up with Plugin with id 'com.android.application' not found 在以下任何来源中均未找到插件 [id: 'com.android.application', version: '7.2.0', apply: false] - Plugin [id: 'com.android.application', version: '7.2.0', apply: false] was not found in any of the following sources 错误:(1,0)找不到ID为'com.android.application'的插件-没有build.gradle文件 - Error:(1, 0) Plugin with id 'com.android.application' not found - no build.gradle file Bumblebee Android 工作室插件 [id: 'com.android.application', version: '7.1.0', apply: false] 在以下任何来源中均未找到: - Bumblebee Android studio Plugin [id: 'com.android.application', version: '7.1.0', apply: false] was not found in any of the following sources:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM