1. Are you ready for the Galaxy S20? Here is everything we know so far!

Migrating from API 28 to API 21

Discussion in 'Android Lounge' started by bgarr33434, Jan 16, 2019.

  1. bgarr33434

    bgarr33434 Newbie
    Thread Starter

    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.

     


  2. Best Answer:
    Post #3 by bcrichster, Jan 16, 2019 (1 points)
  3. Deleted User

    Deleted User Guest

    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.
     
    MoodyBlues and bcrichster like this.
  4. bcrichster

    bcrichster ROMinator
    Moderator

    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
     
  5. bcrichster

    bcrichster ROMinator
    Moderator

    Got ninja'd Lol
     
    MoodyBlues likes this.
  6. bgarr33434

    bgarr33434 Newbie
    Thread Starter

    Perfect, Thanks!
     
  7. aio developers

    aio developers Android Enthusiast

    :Dandroid style
     
Loading...

Share This Page

Loading...