question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android is crashing on startup without any error logs

See original GitHub issue

Describe the problem

Our android app now crashes right away (on startup ) without any error logs.

What was the expected behavior?

We are just trying to add this package to our react native app by following the README instructions but it crashes on android right away without any error logs. We have it mostly working as expected for ios.

Reproduction

We installed the package with npm and edited our android/app/build.gradle By inserting this :

    

android {
  // more code here we already had  lives between these two lines
  defaultConfig {
        applicationId 'OUR_APP_ID_HERE'

         // more code in this section that we already had, like the applicationId above
        manifestPlaceholders = [auth0Domain: "login.ourURL.com", auth0Scheme: "${applicationId}"]
    }
}

If we try to remove the manifestPlaceholders line from our gradle file we get this error and the app fails to build for android:

> Task :app:processDebugManifest FAILED

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

713 actionable tasks: 2 executed, 711 up-to-date
/Users/jason/ourrepo/android/app/src/debug/AndroidManifest.xml Error:
	Attribute data@host at AndroidManifest.xml requires a placeholder substitution but no value for <auth0Domain> is provided.
/Users/jason/ourrepo/android/app/src/debug/AndroidManifest.xml Error:
	Attribute data@scheme at AndroidManifest.xml requires a placeholder substitution but no value for <auth0Scheme> is provided.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs

Misc: We also tried uninstall the package react-native-auth0 and leaving the manifestPlaceholders line in our build.gradle and that did not crash on startup up just as a test.

We are just running: npx react-native run-android

Thank you

Environment

  • Version of this library used:

  • "react-native-auth0": { "version": "2.9.0",
    
  • Which framework are you using, if applicable:

  • We are on expo sdk 41 but using a bare workflow.

  • Other modules/plugins/libraries that might be involved:

  • We were using expo-auth-session before

  • Any other relevant information you think would be useful:

Running on OSX 11.4 Andrioid version 10, pixel 4

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jasonkvcommented, Jul 1, 2021

Ah got it @Widcket . Thanks for looking into it but yeah that was just a mistake on my end trying to do a workaround that ended up causing that error later. That’s why I had removed it from my comment after but sorry you still saw that and wasted your time.

0reactions
Widcketcommented, Jul 1, 2021

@jasonkv the Auth0 constructor error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detect and diagnose crashes
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
Android App crashes without any logcat or any exception
The app crashes on some point but not as it usually will crash.The app goes back to previous activity or completelly quiting the...
Read more >
Why do my apps keep crashing on Android, How to fix it
1. Force stop the app · 2. Restart the device · 3 . Clear app data · 4. Reinstall the app · 5....
Read more >
How to Diagnose App Issues Using Crash Logs
1. Enable USB Debugging on Device · 2. Install the App via Android Studio and ADB · 3. Producing the Crash · 4....
Read more >
Crashlytics does not log app startup crashes · Issue #4176
Install a app version the crashes on App startUp, throw RuntimeException() in Application Class; Open the app, should crash the app. Open it ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found