Gradle 3.0 BuildException cannot create directory

后端 未结 4 893
栀梦
栀梦 2020-12-30 13:01

I\'m on windows and updated to Android Studio (AS) 3.0 RC1. When I try to built our project with gradle via AS or terminal it stops, the Stacktrace is at the end. The weird

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 14:03

    android.applicationVariants.all { variant ->
      variant.outputs.all {
          outputFileName = "${variant.name}-${variant.versionName}.apk"
    

    This code will fix the issue.!! There is a minor change to the above answer in this script

提交回复
热议问题