Cause: buildOutput.apkData must not be null

后端 未结 28 1557
再見小時候
再見小時候 2020-12-07 12:03

My android application using Kotlin is throwing this exception when I try to Run \'app\' in the emulator o in my cellphone. When I build my project it runs well, with no err

28条回答
  •  太阳男子
    2020-12-07 12:22

    Updating to Android Studio 3.4.?, i get the message

    Cause: buildOutput.apkData must not be null

    looking for an answer i found the procedure:

    Build -> Clean Project

    but it doesn´t worked, i know that this procedure will delete the content into the /build directory but for my experience it doesn´t work in all cases, so i tried the "raw" way, deleting the directory:

    /app/build/ 
    

    then i rebuild the project and it worked.

提交回复
热议问题