Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.7.0 freezes on splash screen while 8.6.2 does not #1813

Open
JWiseCoder opened this issue Apr 24, 2024 · 9 comments
Open

8.7.0 freezes on splash screen while 8.6.2 does not #1813

JWiseCoder opened this issue Apr 24, 2024 · 9 comments

Comments

@JWiseCoder
Copy link

JWiseCoder commented Apr 24, 2024

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 use 1.1.0-rc01 I can get it to work, but why would nativescript/android version affect this?

@NathanWalker
Copy link
Contributor

When possible to share your app.gradle and AndroidManifest would be helpful. It may be just min/target sdk related.

@JWiseCoder
Copy link
Author

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.

@dougmbarcellos
Copy link

Same problem updating from 8.5.2 to 8.8.2. Solved removing dependency nativescript-pdf-view (3.0.0-1).

@cloudhx
Copy link

cloudhx commented Aug 29, 2024

@dougmbarcellos I have the same issue but no dependency nativescript-pdf-view, any idea about what could be wrong? Thanks!

@madmas
Copy link

madmas commented Aug 29, 2024

@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?

@dougmbarcellos
Copy link

Replacing with @nativescript/pdf solves the problem

@dougmbarcellos
Copy link

@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.

@jasreenka
Copy link

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)

@jasreenka
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants