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 - Build Failing

See original GitHub issue

After upgrading to version 2.0.0-beta.10, running react-native run-android is failing.

> Task :react-native-screens:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-screens:compileDebugJavaWithJavac'.
> java.lang.reflect.UndeclaredThrowableException

downgrading to version 2.0.0-beta.4, the error goes away and build is completed successfully.

Issue Analytics

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

github_iconTop GitHub Comments

7reactions
ryandmello1198commented, May 11, 2021

same issue with version 2.3.0 and 2.2.0.

Downgrade to 2.0.0-beta.4 works

Thanks man this worked out for me !!

5reactions
mrbrentkellycommented, Apr 17, 2020

Disregard - see my next comment below

This might need to be re-opened? I’m hitting the issue with React Native 0.62.2 and react-native-screens 2.4.0. Reverting to 2.0.0-alpha.32 resolves the issue.

com.android.tools.build:gradle:3.6.2
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

2.4.0. Reverting back to 2.0.0-alpha.32 resolves the problem.

* What went wrong:
Execution failed for task ':SomeApp:processDevDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFa
cade
   > Android resource linking failed
     AAPT: error: resource style/Widget.AppCompat.TextView (aka com.someapp:style/Widget
.AppCompat.TextView) not found.
     error: resource style/Widget.AppCompat.TextView (aka com.someapp:style/Widget.AppCo
mpat.TextView) not found.
     error: resource style/Widget.AppCompat.TextView (aka com.someapp:style/Widget.AppCo
mpat.TextView) not found.
     error: resource style/Widget.AppCompat.TextView (aka com.someapp:style/Widget.AppCompat.TextView) not found.
     error: resource style/Widget.AppCompat.TextView (aka com.someapp:style/Widget.AppCompat.TextView) not found.
     error: failed linking references.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to build project with Android studio - Stack Overflow
File->Other Settings->Default Project Structure · Under Project Settings: Project, set Project SDK as Android SDK. · Click Edit button · For Android SDK,...
Read more >
Why does a build fail in Android Studio even if I don't ... - Quora
There are several causes for gradle build fail in Android studio. Few reasons might be: * Dependencies added * Importing the project from...
Read more >
[FIXED] Android build failures `No matching variant of ... - GitHub
I'd like to share an update on a series of build failures React Native & Expo users have been experiencing when building Android...
Read more >
Fix Gradle Build Error in Android Studio | Compilation failed
Tutorial to fix errors encountered while running the android application. This video includes some ways in which you can fix Gradle build ......
Read more >
Android Build Fail - Build issue - AppGyver forums
What went wrong: Execution failed for task ':app:mergeReleaseResources'. A failure occurred while executing com.android.build.gradle.internal.
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