Error: Please select Android SDK in Android Studio 2.0 -
i using android studio 2.0 beta2, , trying run old project uses google maps api v1 (package com.google.android.maps) *.jar file. run old project need specify compilesdkversion older last 1 (23). used
compilesdkversion 'google inc.:google apis:17'
but got error: please select android sdk error in android studio. how can run old project older compilesdkversion?
i fix problem in case need set compilesdkversion , buildtoolsversion manually in android studio. don't know why android astudio doesn't recognize value gradle.
so steps are:
file/project structure/flavors/
and set buildtoolsversion , compilesdkversion.
but need check, because android studio puts value @ end of gradle file , if have replicated variables, gradle build make error. make cut , paste in here
android { defaultconfig { compilesdkversion 22 buildtoolsversion '22.0.0' minsdkversion 15 targetsdkversion 22 versioncode versionmajor * 10000 + versionminor * 1000 + versionpatch * 100 + versiondevel versionname "${versionmajor}.${versionminor}.${versionpatch}.${versiondevel}" multidexenabled = true }
and that's it!
Comments
Post a Comment