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

Android app is failing to start #129

Open
rutanshuj opened this issue Dec 22, 2022 · 6 comments
Open

Android app is failing to start #129

rutanshuj opened this issue Dec 22, 2022 · 6 comments

Comments

@rutanshuj
Copy link

Cloned the demo and while running the command npx react-native run-android and I get the following issue (Even with command react-native run-android)

* What went wrong:
Could not determine the dependencies of task ':app:mergeDebugAssets'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.transistorsoft:tsbackgroundfetch:+.
     Required by:
         project :app > project :react-native-background-fetch
      > Failed to list versions for com.transistorsoft:tsbackgroundfetch.
         > Unable to load Maven meta-data from https://www.jitpack.io/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml.
            > Could not GET 'https://www.jitpack.io/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml'. Received status code 521 from server: 

android/local.properties
sdk.dir = /Users/[Username]/Library/Android/sdk

I checked my Gradle Version as well

gradle --version


Gradle 7.4.2

Build time: 2022-03-31 15:25:29 UTC
Revision: 540473b8118064efcc264694cbcaa4b677f61041

Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 18.0.1.1 (Homebrew 18.0.1.1+0)
OS: Mac OS X 12.2.1 x86_64

I have Invalidated Cache and restarted several times however the same issue arises.

Please let me know how to go about this.

@christocracy
Copy link
Member

Did you run yarn install first?

@rutanshuj
Copy link
Author

@christocracy
Yes I have

@CryptaBean
Copy link

Same fate. Have cloned this repo. it's running perfectly fine on IOS but doesn't open on android. I can see the below in the cli but it crashes instantly:

info Starting the app on "emulator-5554"...
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.transistorsoft.backgroundgeolocation.react/.MainActivity }
 BUNDLE  ./index.js 

 BUNDLE  ./index.js 

 BUNDLE  ./index.js 

@christocracy
Copy link
Member

If you have a crash on Android, the place to look is $ adb logcat. There will be a stacktrace there explaining everything.

@christocracy
Copy link
Member

I think i found the issue. Please git pull origin master (or re-clone) and try again.

@CryptaBean
Copy link

Amazing Chris. super fast support!! its working!

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

3 participants