Open JWiseCoder opened 7 months ago
When possible to share your app.gradle and AndroidManifest would be helpful. It may be just min/target sdk related.
I can't share that entirely, but both target and compile sdk are 33. And I don't have to update any of that as long as I change to implementation "androidx.core:core-splashscreen:1.1.0-rc01"
. I'd rather not use an rc in the app, and I don't know when the release is coming.
I was just wondering what in nativescript android made that necessary.
Same problem updating from 8.5.2 to 8.8.2. Solved removing dependency nativescript-pdf-view (3.0.0-1).
@dougmbarcellos I have the same issue but no dependency nativescript-pdf-view, any idea about what could be wrong? Thanks!
@dougmbarcellos @cloudhx are you still using ´nativescript-pdf-view´ or have you updated to https://github.com/NativeScript/plugins/tree/main/packages/pdf , the new home of that plugin that has received some updates?
Replacing with @nativescript/pdf solves the problem
@dougmbarcellos I have the same issue but no dependency nativescript-pdf-view, any idea about what could be wrong? Thanks!
Could be another old dependency. Try upgrade ou replace project dependencies with new versions.
I have a similar issue. Application was getting stuck on "Successfully installed on device ..." step. After replacing nativescriot-pdf-view, it moves now to next step to restart the application but is getting stuck there with the following error :
Installing on device emulator-5554...
Successfully installed on device with identifier 'emulator-5554'.
Restarting application on device emulator-5554...
System.err: An uncaught Exception occurred on "main" thread.
System.err: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function
System.err: Error calling module function
System.err: ReferenceError: android is not defined
System.err: File: (file: src/webpack/bootstrap:27:0)
System.err:
System.err: StackTrace:
System.err: ./node_modules/@nativescript/core/utils/constants.android.js(file: node_modules/@nativescript/core/utils/constants.android.js:1:7)
System.err: at __webpack_require__(file: src/webpack/bootstrap:24:0)
System.err: at fn(file: src/webpack/runtime/hot module replacement:62:0)
System.err: at ./node_modules/@nativescript/core/accessibility/accessibility-service.android.js(file:///data/data/ca.mybenefits.mobile/files/app/vendor.js:3465:74)
System.err: at __webpack_require__(file: src/webpack/bootstrap:24:0)
The issue with the error I had was having productFlavour in app.gradle. Removing product flavours works. I need those to distinguish between qa and prod app. flavorDimensions "environment" productFlavors { prod { dimension "environment" } qa { dimension "environment" applicationIdSuffix ".beta" } } Any ideas why that would be an issue?
I updated my app, and among other things, it upgraded nativescript/android to 8.7.0. When I ran on Android, the app never got past the splash screen. While debugging this, I discovered if I just set nativescript android back to 8.6.2, everything worked fine, and the app ran normally.
I'd like to upgrade fully, but I can't figure out what change to nativescript/android made this occur.
If I change the implementation used from
androidx.core:core-splashscreen
to use1.1.0-rc01
I can get it to work, but why would nativescript/android version affect this?