• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Migrating from API 28 to API 21

bgarr33434

Newbie
Looking for some guidance on how I take an app that was written for API 28, with appropriate versions of Gradle, Support and SDK, and make it work on Android 5, API 21. Not sure where to even start, as I have tried simply replacing the build information and get all of link failures.
 
First set the android:minSdkVersion="21" in your AndroidManifest.xml file.
In terms of the compile problems, you have to work through them individually. I would have thought there'd not be too many problems, but it depends what your app is trying to do, and what API features it uses.
 
Maybe start with the AndroidManifest.xml and can also search for API to replace those # 28's with the # 21. Heck, you could probably just search '28' and when it references APIs, make the edits. Also sync CM-12.1 so you can just build the app individually as needed and have all the appropriate SDK's needed, directly on hand
 
First set the android:minSdkVersion='21' in your AndroidManifest.xml file.
In terms of the compile problems, you have to work through them individually. I would have thought there'd not be too many problems, but it depends what your app is trying to do, and what API features it uses.

Got ninja'd Lol
 
Maybe start with the AndroidManifest.xml and can also search for API to replace those # 28's with the # 21. Heck, you could probably just search '28' and when it references APIs, make the edits. Also sync CM-12.1 so you can just build the app individually as needed and have all the appropriate SDK's needed, directly on hand

Perfect, Thanks!
 
Back
Top Bottom