java - transferred computers with Android Studio and now have Gradle error -
i had gradle error @ first needed change version. read problem on android studio website, , followed there directions , changed line in gradle file:
classpath 'com.android.tools.build:gradle:0.5.0'
my error didnt go away , main full of red underlines. restarted android studio , seemed fixed.
but when tried compile , run on phone mac book air got error:
gradle: problem occurred evaluating root project 'beerportfoliopro'. > sdk directory '/users/mike/library/caches/androidstudiopreview/compile-server/"/applications/android studio.app/sdk"' not exist.
my gradle build file:
buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.0' } } apply plugin: 'android' dependencies { } android { compilesdkversion 17 buildtoolsversion "17" defaultconfig { minsdkversion 11 targetsdkversion 17 } sourcesets { main { manifest.srcfile 'androidmanifest.xml' java.srcdirs = ['src'] resources.srcdirs = ['src'] aidl.srcdirs = ['src'] renderscript.srcdirs = ['src'] res.srcdirs = ['res'] assets.srcdirs = ['assets'] } instrumenttest.setroot('tests') } }
you can change dependency 'com.android.tools.build:gradle:0.5.4'
.
also, add local.properties file in project root folder line pointing android studio sdk directory. had put line:
sdk.dir=/applications/android studio.app/sdk
Comments
Post a Comment