「Unable to load class 'com.android.builder.testing. api. DeviceProvider'.」と言い始める AndroidStudio

ん,なにこれ.

aaaa

バグレポートにも出始めている.

Upon first run with default name and creating first project got following error:

18:04:03 Failed to refresh Gradle project 'My Application'
Unable to load class 'com.android.builder.testing.api.DeviceProvider'.
This is an unexpected error. Please file a bug containing the idea.log file.
File a bug Show log file

Issue 67692 - android - Failed to refresh Gradle project 'My Application' - Android Open Source Project - Issue Tracker - Google Project Hosting

Opened up Android Studio today and got this error. Weird, I've never seen this one before, it says it's unexpected and that I should file a bug.

Issue 67693 - android - Unable to load class 'com.android.builder.testing.api.DeviceProvider' - Android Open Source Project - Issue Tracker - Google Project Hosting

あーっ,

Issues_-_android_-_Android_Open_Source_Project_-_Issue_Tracker_-_Google_Project_Hosting

で,どうすれば,

たまにある gradle リポジトリの先走り(AndroidStudioが追いついてない)っぽい.

as reported in one of the duplicates, changing dependencies from:
classpath 'com.android.tools.build:gradle:0.9.+'
to
classpath 'com.android.tools.build:gradle:0.9.0'

allows me to build successfully again

バージョンを「0.9.0」に固定.

gradle-version

再度, gradle sync.

gradle-ok

とりあえず,これで.

そのうち「0.9.+」でも対応できるようになるはず.


関連ワード:  AndroidAndroidStudio速報開発