breautek commented on issue #1619: URL: https://github.com/apache/cordova-android/issues/1619#issuecomment-1568255579
> I did without any plugin I make simple hello world app but same problem above screenshot attached > > /   The first screenshot does like the cordova hello world template. The second screenshot that says "App not installed." is not something cordova produces. > app not ruuning adroid 5 6 on e'4_WVGA_Nexus_S_Edited_API_23 [emulator-5554]'. API 23 is not supported by the cordova framework so your mileage may vary if you try to force it (by overriding the `android-minSdkVersion` for example). On cordova-android@12, the minimum SDK is 24. For the purposes of figuring out the issue, we should be testing no earlier than API 24 to rule out the possibility that the problem is not a problem due to using an unsupported API. > FATAL EXCEPTION: main Process: com.example.hello, PID: 4800 java.lang.NoClassDefFoundError: org.apache.cordova.PluginManager$$ExternalSyntheticLambda0 at org.apache.cordova.PluginManager.postMessage(PluginManager.java:355) at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:161) at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:234) at com.example.hello.MainActivity.onCreate(MainActivity.java:40) at android.app.Activity.performCreate(Activity.java:6237) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) I've tested the hello world app with your plugins installed. API 24 works (as in it launches without issues) API 23 produces the above stacktrace. This is because API 23 doesn't have support for lambda functions on a collection.forEach API which the framework uses. As I mentioned before, the Cordova Framework supports API 24+. (See the [PR](https://github.com/apache/cordova-android/pull/1571) and [Mail Thread](https://lists.apache.org/thread/zcgof080hdzzo2j96mjz0qpj0gotmn57) for the rationale behind bumping to API 24). If you truly need API 23 support, you'll have to fork the cordova framework and refactor out anything that requires API 24+. Note that I also did some testing on API 33 devices and some of your plugins doesn't appear to support API 31+ either (they require changes in their usage of `PendingIntent`). This includes 1. cordova-plugin-admobpro which triggers a crash on startup because it needs to explicitly set a `FLAG_MUTABLE` or `FLAG_IMMUTABLE` on the `PendingIntent` it creates. 2. cordova-plugin-upi also has the same issue on the version released to NPM, but it does appear to be fixed in their main branch. None of the issues discovered are bugs with Cordova, so I'll be closing this issue. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
