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)FAILURE: Build failed with an exception. #15

Closed
Ding-Fan opened this issue Mar 1, 2020 · 0 comments
Closed

(android)FAILURE: Build failed with an exception. #15

Ding-Fan opened this issue Mar 1, 2020 · 0 comments

Comments

@Ding-Fan
Copy link
Contributor

Ding-Fan commented Mar 1, 2020

当前问题

I cloned this repository to my local and installed the dependencies with yarn , then

1:19:05 › npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1014 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
info Installing the app...
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve androidx.transition:transition:1.1.0.
     Required by:
         project :app > project :react-native-reanimated
      > Could not resolve androidx.transition:transition:1.1.0.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
               > Remote host terminated the handshake
      > Could not resolve androidx.transition:transition:1.1.0.
         > Could not get resource 'https://jcenter.bintray.com/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
            > Could not GET 'https://jcenter.bintray.com/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
               > Remote host terminated the handshake
      > Could not resolve androidx.transition:transition:1.1.0.
         > Could not get resource 'https://jitpack.io/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
            > Could not GET 'https://jitpack.io/androidx/transition/transition/1.1.0/transition-1.1.0.pom'.
               > Remote host terminated the handshake

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6m 6s

I've searched on the internet and found this issue looks similar. transistorsoft/react-native-background-geolocation#536 (comment)
Now I'm trying to install the dependencies with npm .

Now it works. Build successful.

期待的正确输出

BUILD SUCCESSFUL

Ding-Fan added a commit to Ding-Fan/wuhan2020-frontend-react-native-app that referenced this issue Mar 1, 2020
geastwood added a commit that referenced this issue Mar 1, 2020
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