Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

20
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
20
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?