UnableToDeleteFileExceptionとかHttpRequestExceptionとかいろいろ出てたので、いろいろいじっていたら一応コンパイルは通るようになったのでメモ。これで本当に解決したかどうかは不明。
maven追加
build.gradle(Project)のallprojects { repositories { 内に以下を追加
maven { url 'https://maven.google.com' }
Instant Run をオフに
- メニューで「File」>「Settings」
- 検索で「Instant Run」を探す
- Enable Instant Run to... のチェックを外す
android - Error: Execution failed for task ':app:clean'. Unable to delete file - Stack Overflow
*
- メニューで「File」>「Settings」
- 「Build, Execution, Deployment」>「Gradle」>「Android Studio」
- 「Enable embedded Maven repository」をチェック