Android Studio升級3.5 打包報錯 Cause: buildOutput.apkData must not be null

Android Studio升級3.5 打包報錯 Cause: buildOutput.apkData must not be null

簡介:
最近Android Studio有新的更新,抱着嚐鮮的心態把編譯器更新了,更新以後打包apk報錯“Cause: buildOutput.apkData must not be null”。

Android Studio版本號:

Android Studio 3.5.1
Build #AI-191.8026.42.35.5900203, built on September 26, 2019

gradle版本:

distributionUrl=https://services.gradle.org/distributions/gradle-5.4.1-all.zip

classpath:

classpath ‘com.android.tools.build:gradle:3.5.1’

打包時報錯:
Cause: buildOutput.apkData must not be null

解決方法:

  1. 先打debug包;
  2. 再打release包。

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章