20
21

More than 5 years have passed since last update.

AndroidStudio 0.5.0 にアップデートしたらやるべきこと

Posted at

リリースノートの和訳的なものですが、見落としがちなのでメモ。

Gradle Plugin のアップデート

AndroidStudio 0.5.0 になり、Gradle Plugin もバージョンアップする必要があります。

buildscript {
  dependencies {
    classpath 'com.android.tools.build:gradle:0.9.+'
  }
}

テスト用ライブラリの依存関係を解決する DSL の変更

instrumentTestCompileおよびtestCompileが存在しなくなります。かわりに、androidTestCompileを使用します。

dependencies {
  androidTestCompile 'com.squareup:fest-android:1.0.+'
}

ライブラリプロジェクトの Build Valiant DSL

android 直下においていたdebugreleasedebugSigningConfigは以下のように変更します。

android {
  buildTypes {
    debug {
    }
    release {
    }
  }
  signingConfigs {
    debug {
    }
  }
}

Gradle sync failed する場合

スクリーンショット 2014-03-07 11.46.36.png

こんな感じで、キャッシュのロック待ちでタイムアウトする場合は、File > Invalidate caches / Restart を使ってキャッシュをクリアしてください。

20
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
21