1.介紹
Android Studio在打包生成apk時,安裝到手機上時,出現閃退。
2.解決方式
第一步:把 Android Studio 的 Instant Run 給關掉,File → Settings → Build,Execution,Deployment → Instant Run
把勾選去掉,點擊Apply , OK 。
第二步:把所有的緩存刪除,即兩個build文件:
第三步:刪除完後,在Clear Project
Android Studio在打包生成apk時,安裝到手機上時,出現閃退。
第一步:把 Android Studio 的 Instant Run 給關掉,File → Settings → Build,Execution,Deployment → Instant Run
把勾選去掉,點擊Apply , OK 。
第二步:把所有的緩存刪除,即兩個build文件:
第三步:刪除完後,在Clear Project