Android Studio 3.5原因:buildOutput.apkData不能为空清理和重建已尝试

Tes*_*389 6 android android-studio android-studio-3.0

将Android Studio 3.4更新为3.5,并想构建一个Signed APK之后,但是出现错误:

原因:buildOutput.apkData不能为null错误

我已经尝试清理并制作项目以及清理并重建项目,但没有成功。

我正在使用Android Gradle 3.5.0和Gradle版本5.4.1

小智 9

将我的Android Studio v3.4更新到v3.5之后,就会发生此问题,现在一切正常

I fixed this issue by deleting debug/output.json and release/output.json files
otherwise change your apk destination folder path.

Android Studio 3.5
compilesdkVersion 28

apk generating working
Run Code Online (Sandbox Code Playgroud)


Hem*_*ddi 0

它正在 AS 3.4.2 版本上运行。我已经尝试了一切(清理并创建项目以及清理和重建)并最终降级到 3.4.2。

此问题可能会在 3.6 版本中得到修复。 https://androidstudio.googleblog.com/2019/07/android-studio-36-canary-5-available.html