Android Studio : Failure [INSTALL_FAILED_OLDER_SDK]

后端 未结 24 1261
孤街浪徒
孤街浪徒 2020-11-27 04:54

Today I have downloaded Android Studio v 0.8.0 beta. I am trying to test my app on SDK 17 . Android studio error Failure [INSTALL_FAILED_OLDER_SDK] Here is my a

24条回答
  •  Happy的楠姐
    2020-11-27 05:21

    The real issue is that with vanilla Android Studio v 0.8 beta, it only installs/recognize SDK 20 which is android L. In order to target another complieSDK you need to install it via the SDK manager. Once it is set, you can then change the compileSDK to a lower version and it should work.

    you may also want to restrict the compatibility library, it needs to be restricted from using the latest version of the library so change the dependecy to something like :

    compile('com.android.support:appcompat-v7:19.1.0') {
        // really use 19.1.0 even if something else resolves higher
        force = true
    }
    

提交回复
热议问题