Search code examples
androidadbandroid-things

Android Things - Raspberry Pi 3 B - adb install apk - INSTALL FAILED OLDER SDK


I have a custom build of Android Things with my app sdk successfully installed on my RP 3B. I wanted to update the apk with a new version so I'm attempting to install it via adb.

I get the following error when trying to install: INSTALL_FAILED_OLDER_SDK

enter image description here

Now, this seems pretty self explanatory, the APK is built using API 27, not API 28. The issue is that it IS build with API 28.

enter image description here

I've removed all traces of API 27 and this is still happening.

Any thoughts would be greatly appreciated.


Solution

  • You need to change from 28 to 27 for miniSdkVersion

    miniSdkVersion 27
    

    Explanation:

    miniSdkVersion is the minimal required Android version that your apk can run on. If you set it to 28, then it won't be able to install on device with Android 27.