コトバノウタカタ

よしなしごとをつらつらとつづるばしょ。

Android Studio 3.1.2でリリースビルドするとエラー

UnableToDeleteFileExceptionとかHttpRequestExceptionとかいろいろ出てたので、いろいろいじっていたら一応コンパイルは通るようになったのでメモ。これで本当に解決したかどうかは不明。

maven追加

build.gradle(Project)のallprojects { repositories { 内に以下を追加

maven { url 'https://maven.google.com' } 

[Android Studio] 最新のSupport Libraryが見つからないと思ったら見つかった件

Instant Run をオフに

  1. メニューで「File」>「Settings」
  2. 検索で「Instant Run」を探す
  3. Enable Instant Run to... のチェックを外す

android - Error: Execution failed for task ':app:clean'. Unable to delete file - Stack Overflow

*

  1. メニューで「File」>「Settings」
  2. 「Build, Execution, Deployment」>「Gradle」>「Android Studio
  3. 「Enable embedded Maven repository」をチェック

Android Studio Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom - Help/Discuss - Gradle Forums