Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio 2 issue after update to preview 6

I updated to android studio 2.0 to preview 6.

I got this error message:

Error

Error:(1, 0) Plugin is too old, please update to a more recent version, 
     or set ANDROID_DAILY_OVERRIDE environment variable to "aed79d567e57792ed352e708d2b7ca891ff897c6"

When i click on the options Fix plugin version and sync project

Project get synced but nothing happens.

When i click on Open File, it opens build.gradle file which associated to App module. it puts the cursor on this line:

apply plugin: 'com.android.application'

Any clue what is the ANDROID_DAILY_OVERRIDE environment variable ? or what can be this error ?

like image 990
MBH Avatar asked Jan 21 '16 07:01

MBH


People also ask

How to solve emulator problem in Android Studio?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

Why Android Studio is not opening?

If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin.


1 Answers

Could you try changing the class path of your build.gradle to com.android.tools.build:gradle:2.0.0-alpha6

buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.0.0-alpha6'
}
}

hope this will help.

like image 56
M.Khouli Avatar answered Nov 15 '22 08:11

M.Khouli