How can I change the defined API version of an Android app? -


i absolutly new in android development , have following problem trying build sample project have downloaded internet.

when try build obtain following error message:

error:cause: failed find target hash string 'android-18' in: c:\users\andrea\appdata\local\android\sdk <a href="install.android.platform">install missing platform(s) , sync project</a> 

so search online , found link: android studio - failed find target android-18

ok go tools > android > sdk manager , infact have installed android 6 corrisponding api level 23 not android 4.3 corrisponding api level 18.

so means? means have installed different version o android framework ?(is sdk considerable framework or what?)

so, on android studio can install different version of sdk?

i think api level have defined in way dowloaded application. how can specify application don't use api level 18 instead use installed api level 23 ? think not problem because have installed newest version have support stuff of oldest one, it?

i explain problem bit , provide solution.

you facing problem, because project targeting api level 18 compile project. must have api 18 sdk installed compile project.

this why ide complaining that,

install missing platform(s) , sync project 

the sdk not framework. android framework same over, different api levels new updates pushed sdk, latest being api 23, marshmallow.

you should not download older sdk compile project.

always try use latest sdk available work with. so, head on build.gradle file or androidmanifest.xml file , change compilesdkversion 23.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -