5

After upgrading to Android Studio v0.2.0, the following error message appeared.

enter image description here

Also, after few seconds my android studio closed itself and problem persists even if I create new android project.

Charles
  • 50,943
  • 13
  • 104
  • 142

3 Answers3

3

Its a reported issue in Android Studio Build #AI-130.737825, built on July 11, 2013. Luckily, there is a workaround that you can do to fix this import issue.

Externally edit the project's build.gradle file, changing 'com.android.tools.build:gradle:0.4.2' to 'com.android.tools.build:gradle:0.5.0'

Here is the link to the issue.

@Xav, have already mentioned that in new release 0.5.+ the issue is automatically fixed.

Irfan
  • 2,713
  • 3
  • 29
  • 43
2
  1. Go to your project folder like so enter image description here
  2. Open the file build.gradle in any text editor.
  3. Under dependencies

    change to 'com.android.tools.build:gradle:0.5.0'

Cœur
  • 37,241
  • 25
  • 195
  • 267
Gaurav Agarwal
  • 18,754
  • 29
  • 105
  • 166
  • Thanks for the useful edition coding crow after doing that what you suggest this error is occurs http://postimg.org/image/lqxbkypv5/ –  Jul 12 '13 at 15:51
  • @Adi If this problem is solved, you may accept the answer. Restart Android Studio. See http://stackoverflow.com/q/17614477/932307 for your new problem. If problem persists ask a new question and leave a comment here. – Gaurav Agarwal Jul 12 '13 at 16:11
  • 2
    The dependency should be 0.5.+ to automatically pick updates. We've already released 0.5.1 to fix something. – Xavier Ducrohet Jul 13 '13 at 01:03
0

I noticed this on http://tools.android.com/recent/androidstudio020released

"To install 0.2, you'll need to install a new Studio bundle. In other words, we are not offering a patch update from 0.1.9 to 0.2. The reason for that is that we have made changes to for example the bundled SDK such that it includes a pre-configured local Maven repository which can serve up the v4 support library."

So you need to uninstall and reinstall Android Studio to upgrade to 0.2.