ADB commandline Hanging during install (PhoneGap)

后端 未结 6 2020
眼角桃花
眼角桃花 2021-01-04 10:43

My Phonegap app refuses to load onto my Android device (even the HellowWorld default app is refusing to load)

Everything was running just great until today. Here\'s

6条回答
  •  春和景丽
    2021-01-04 11:30

    Had the same (original) issue (with cordova / testing on an old device) ie. hang during install.

    Tried running adb install directly from cmd line ...

    adb [-s ] install 
    

    ...and same issue so not cordova specific....

    Opened android device monitor (ADM) ...

    ..sdk\tools>monitor

    ..and ran install from cmd line again and saw logcat message saying package was sdk 16 / device was 15...doh!

    So went back to AndroidManifest.xml and changed android:minSdkVersion to 15 and all back to normal again - install worked fine.

    ( Issue arose because I had installed something else which had changed the minSdkVersion and then removed the something else and never reset the minSdkVersion )

    So, possibly device sdk / android version is too low for your build. If not, a look at the ADM logcat output as you initiate the install from the command line might indicate what the issue is.

提交回复
热议问题