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

Demo app not working #139

Open
ShivalThakur opened this issue Sep 24, 2024 · 13 comments
Open

Demo app not working #139

ShivalThakur opened this issue Sep 24, 2024 · 13 comments

Comments

@ShivalThakur
Copy link

Hi,
When I try to run the app. It is getting crashed on startup. Logcat has the following logs.

image
Can you please help on this.

Thanks

@christocracy
Copy link
Member

I've just pushed a commit to master. I suggest you re-clone the demo repo and start from scratch.

What device and OS are you installing this on?

@ShivalThakur
Copy link
Author

Hi,
I tried the latest code, but it does not work. I am installing it on Android emulator and Android 14.
Both has the same issue.

@christocracy
Copy link
Member

Execute the following task:

$ cd android
$ ./gradlew app:dependencies

Capture all the output and paste into a text file. Attach the file here.

@ShivalThakur
Copy link
Author

ShivalThakur commented Sep 28, 2024

Please find the attached output
logs.txt

@christocracy
Copy link
Member

Have you made any modifications to the code after cloning this repo?

@christocracy
Copy link
Member

  • Are you running this in a simulator?
  • What is your development machine's OS (Windows? Mac? Linux?)

@ShivalThakur
Copy link
Author

  • re you running this in a simulator?
  • What is your development machine's OS (Windows? Mac? Linux?)

I am trying it on both simulator and real device.
My development machine is Windows.

@christocracy
Copy link
Member

Have you made any modifications to the code after cloning this repo?

@ShivalThakur
Copy link
Author

Have you made any modifications to the code after cloning this repo?

Yes I had changes, as app was throwing some errors.
image

@christocracy
Copy link
Member

Do not modify the code. Remove those changes! If there’s an error, send that to me.

@ShivalThakur
Copy link
Author

I cloned it. Getting build failure.
image

@christocracy
Copy link
Member

christocracy commented Sep 30, 2024

I just generated a fresh new HelloWorld app.

package.json:

"dependencies": {
    "react": "18.3.1",
    "react-native": "0.75.3"
  },

android/app/build.gradle

  • notice there are none of those extra debugImplementation that you added for flipper, etc.
dependencies {
    // The version of react-native is set by the React Native Gradle Plugin
    implementation("com.facebook.react:react-android")

    if (hermesEnabled.toBoolean()) {
        implementation("com.facebook.react:hermes-android")
    } else {
        implementation jscFlavor
    }
}

As for your error "Could not move temporary workspace - Error resolving plugin [id: 'com.facebook.react.settings'] - java.io.UncheckedIOException", this seems to be a Windows issue. See if you can solve your problem (without modifying the demo app code) by following this thread:

@christocracy
Copy link
Member

From that thread, the RN folks have acknowledged a Windows issue with Gradle > 8.6:

Screenshot 2024-09-30 at 10 28 46 AM (1)

Try the solution here. Let me know if it works and I'll downgrade to Gradle 8.6.

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

2 participants