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

问题描述 投票:0回答:1

自从我更新android工作室后我收到了错误

错误:启动失败:构建文件'C:\ Users \ Personal \ AndroidStudioProjects \ VoiceAssistant \ app \ build.gradle':1:意外字符:0x0 @第1行,第3列. ap p l y p l u g i n:'c o m。一个人a p p l i c a t i o n'^

1错误

我的gradle文件

     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'
}
java android android-gradle
1个回答
0
投票

尝试使缓存失效并在Android Studio中重新启动。

单击文件 - >无效缓存并选择无效并重新启动。

© www.soinside.com 2019 - 2024. All rights reserved.