我升级到gradle到3.1.1,但现在我想再次更改为3.0.1但在更改为3.0.1后,我收到此错误
预期名称,但STRING在第1行第99行路径$ [0] .apkInfo.versionName
我以前使用3.0.1并且它工作得很好但是在android studio更新后我改变了.
只有在生成签名的apk时才会出现错误.
Project Gradle
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)
App gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.smiles.smartstuddy"
minSdkVersion 16
targetSdkVersion 27
versionCode 4
versionName …Run Code Online (Sandbox Code Playgroud)