How do you build and deploy to an older version of android for ionic / cordova

前端 未结 5 1584
耶瑟儿~
耶瑟儿~ 2020-12-31 01:25

Using Ionic 1.0.0 beta-8

After creating a new app, I built and deployed it to a Nexus 5 emulator and it worked fine. But when I tried to debug it on my Android 2.2 p

5条回答
  •  清歌不尽
    2020-12-31 01:55

    this question is similar to yours. stackoverflow

    go to your AndroidManifest.xml, find these to control your sdk buildversion.

     // value is the API LEVEL
    
    

    *targetSdk = tell phonegap which android build version to use,
    *MinSdk is to limit user who want to download it.
    check the API LEVEL of android build here.

    In Your case: for android 2.2, use value= 8(API level 8)

         //android 2.2
         //android 4.2
    

    NOTE: I doubt android 2.2(API level 8) can run API level 17(android 4.2).

提交回复
热议问题