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.

Getting build error with v1.1.0 (Android)

See original GitHub issue

With the release of v1.1.0, I am getting below mentioned error when building my react native android app

A problem occurred configuring project ':react-native-reanimated'.
> Could not get unknown property 'javaCompileProvider' for object of type com.android.build.gradle.internal.api.LibraryVariantImpl.

Issue Analytics

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

github_iconTop GitHub Comments

45reactions
v-singhalcommented, Jun 20, 2019

The below mentioned code inside build.gradle is problematic:

android.libraryVariants.all { variant ->
        def name = variant.name.capitalize()
        task "jar${name}"(type: Jar, dependsOn: variant.javaCompileProvider.get()) {
            from variant.javaCompileProvider.get().destinationDir
        }
}

If this is replaced with the below mentioned code, the said problem is fixed.

android.libraryVariants.all { variant ->
        def name = variant.name.capitalize()
        task "jar${name}"(type: Jar, dependsOn: variant.javaCompile) {
            from variant.javaCompile.destinationDir
        }
}
1reaction
software3daerospacecommented, Feb 18, 2021

Adding and downloading Android 10 in SDK Manager helped fining the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error in Gradle build in Android Studio v1.1.0 - Stack Overflow
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED....
Read more >
Build.VERSION - Android Developers
E.g., "1.0" or "3.4b5" or "bananas". This field is an opaque string. Do not assume that its value has any particular structure or...
Read more >
Get started with Performance Monitoring for Android - Firebase
The Performance Monitoring Gradle plugin v1.1.0 can cause a mismatch in Guava dependencies, resulting in the following error: Error:Execution failed for task ...
Read more >
Troubleshooting - Unity - Manual
This error message indicates that your manifest.json file is malformed. It also tells you the line number where the Package Manager failed to...
Read more >
Changelog: Twilio Sync Android SDK
Sync SDK for Android v1.1.0 (Mar 8, 2022) ... Changes. Fixed compilation errors when sync and conversations SDKs are used together in an...
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