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.

Build:android gradle dependency failure trying to export .apk package

See original GitHub issue

Issue Description

When attempting to output a .apk package for the expo app locally using turtle, the build fails with a gradle error relating to failing to acquire a crashlytics package.

We’ve previously pinned the turtle version to 0.11.1, which has been stable in the past.

Command executed
EXPO_ANDROID_KEYSTORE_PASSWORD=*** \
EXPO_ANDROID_KEY_PASSWORD=*** \
node_modules/.bin/turtle build:android \
--keystore-path ***.jks \
--keystore-alias *** \
--output /app/test/expo/features/fixtures/build/output.apk \
--release-channel $EXPO_RELEASE_CHANNEL \
--type apk
Complete output when running turtle, including the stack trace and command used
 
Sep 24 09:39:22 turtle[6] INFO:  > Task :app:preReleaseBuild FAILED
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stdout"
  | Sep 24 09:39:22 turtle[6] INFO:  FAILURE: Build failed with an exception.
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:  * What went wrong:
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:  Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:  > Could not resolve com.crashlytics.sdk.android:beta:1.1.4.
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:    Required by:
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:        project :app > host.exp.exponent:expoview:34.0.0 > com.crashlytics.sdk.android:crashlytics:2.5.5
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:     > Could not resolve com.crashlytics.sdk.android:beta:1.1.4.
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:        > Could not get resource 'https://jitpack.io/com/crashlytics/sdk/android/beta/1.1.4/beta-1.1.4.pom'.
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:           > Could not GET 'https://jitpack.io/com/crashlytics/sdk/android/beta/1.1.4/beta-1.1.4.pom'. Received status code 522 from server: Origin Connection Time-out
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:  * Try:
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:  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.
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:  * Get more help at https://help.gradle.org
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
  | Sep 24 09:39:22 turtle[6] INFO:  BUILD FAILED in 2m 52s
  | platform: "android"
  | buildPhase: "running gradle"
  | source: "stderr"
 

Environment

I’m unable to build our expo environment outside of our CI due to the issue mentioned here: #139 . This issue is also referenced by the OP in that post.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kavofacommented, Sep 25, 2019

Any updates?

0reactions
Cawlleccommented, Oct 25, 2019

It appears to be working correctly now, and similar Jitpack issues have been resolved elsewhere.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle Build Android Project "Could not resolve all ...
write following statement in your app's build.gradle file. ... It seems that android studio wants to download some dependencies and our firewall prevents...
Read more >
Can't build Android bundle or APK
I run into two problems with it. First, a message appears at the top of the window: "Gradle project sync failed. Basic functionality...
Read more >
Configure your build
The build process involves many tools and processes that convert your project into an Android Application Package (APK) or Android App Bundle (AAB)....
Read more >
Configure a React Native Android build - App Center
Choose the project's package.json that you want to build. ... associated build.gradle (app level) file, including dependencies, build tools ...
Read more >
Android Platform Guide - Apache Cordova
The system's Gradle binary will create the Gradle Wrapper file that declares and ... export ORG_GRADLE_PROJECT_cdvMinSdkVersion=20 cordova build android.
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