What is the minimum Android API level for Ionic 2?


#1

What is the minimum android api level? I am setting minSdkVersion=“16” but when I deploy on emulator with API level 16, 17 or 18 the application will freeze… (API 19 and up seems to be fine) in the console I see this error:

0 054619 error Uncaught TypeError: Cannot call method 'bind' of undefined, http://169.254.80.80:8100/build/js/app.bundle.js, Line: 61802

I have no idea what the code is doing or how to fix it…


#2

Apparently this is similar to this question here on github: https://github.com/driftyco/ionic-cli/issues/958


#3

Supported from kitkat 4.4 => api 19


#4

You can probably push it back to 4.1 if you use crosswalk, but yes 4.4 is the soft limit.

Really, targeting 4.4 and up is a majority of the android market share.


#5

Tried crosswalk 14 until 19 beta… nothing works… with OpenGL errors of some sort… I guess I am stuck with API 4.4 then… too lazy to learn Ionic 1 and Angular 1… :pensive:


#6

ionic2 defaults to minimum API 16. At least ionic start <name> blank --v2 --ts does


#7

I know right… the template defaults to API 16.