[英]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.