Androidハマった&直ったメモ
キーワード:':app:zipalignDebug', 'inputFile'
事象
Androidアプリが起動せず、エラー終了する。
エラー全文
Error:A problem was found with the configuration of task ':app:zipalignDebug'. File 'C:\User\...\app\build\outputs\apk\app-debug-unaligned.apk' specified for property 'inputFile' does not exist.
解決
AndroidStudio メニュー -> [Build] -> [Build APK] -> Run App
キーワード:'dexopt error'
事象
Androidアプリを端末にインストールできない。
エラー全文
Installation failed since the device possibly has stale dexed jars that don't match the current version (dexopt error).
解決
AndroidStudio メニュー -> [File] -> [Settings] -> [Build, execution, deploy] --> [Instant run] "Enable Instant Run..."のチェックボックスを外す