-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Could not get unknown property 'mergeResourcesProvider' for object of type com.android.build.gradle.internal.api.ApplicationVariantImpl. #4757
Comments
I'm getting the same error. |
same here, happens when I try to upgrade my app to React Native version: 0.59.0-rc.2 , cannot reproduce with a new/clean project. |
I'm using 0.59.0-rc.3 and solved by these steps:
|
for me rc3 didn't solved the issue, but @kimbui87 solution did ! |
i had solved it in Android, thanks |
@kimbui87 solution worked on RN-0.59.1 |
where do i paste the metro.config.js file ?? in which folder? |
Worked on react-native-cli: 2.0.1 and react-native: 0.59.1. Thanks bro I didn't need to modify the file metro.config.js' |
Tried on react-native-cli: 2.0.1 and react-native: 0.59.1. It didn't work. Task :react-native-maps:compileDebugRenderscript FAILED BUILD FAILED in 1s |
having the same error now ....rn 0.59.1 |
iOS issue and fix: facebook/react-native#23886 (comment) Android issue and fix: wix/react-native-navigation#4757 (comment)
iOS issue and fix: facebook/react-native#23886 (comment) Android issue and fix: wix/react-native-navigation#4757 (comment)
Same Problem. |
THIS HAPPENS : Loading dependency graph, done.
|
Same error as @kunal886496 |
don't use run |
I have the same issue. Updating gradle to 3.3.0 did address this issue. But gradle 3.3.0 has a bug. It can not resolve R file in my project. all of my layout file can not be resolved. I have to downgrade gradle to 3.2.1. But, this issue will happen again. How to fix this? |
You should put it in root - same level with App.js. But now RN 0.59 official version was release, it seems no need config metro anymore. |
Thanks @kimbui87 working for me |
I have the same issue as @859988748. I'm using react-native-maps and facing a similar build issue where the apparent working solution is to downgrade gradle to 3.2.1. Here's a link to that issue: react-native-maps/react-native-maps#2696 |
@CliffWMiller I solved it. You need to upgrade AS to 3.2.2 also. using the latest AS will work good with gradle 3.3.0. It cost me one day. |
@859988748 Can you tell me what "AS" stands for? Thank you |
Android Studio |
This not only helped me with using the latest version, but t also helped getting the vscode-react debugger back hitting breakpoints |
@kimbui87 Thank you, your solution fixed this issue for me when upgrading from 0.57.4 to 0.59.3 |
Thanks @kimbui87 it's works for me |
Thanks, @kimbui87 It's Works fine for me. |
what does it mean by removing node? |
delete old node_modules, yarn install again to make sure new config above is applied |
I did what @kimbui87 suggested, not the build is successful but the app keeps stopping (crashing), I'm using version 0.59.4. Does anybody know the solution to this? Thanks in anticipation |
i solved my problem using this npm install — save “react-native-maps@jerolimov/react-native-maps#fix-rn59rc-compile-issues” from: react-native-maps/react-native-maps#2702 the problem is with React native 0.59+ that compile with compileSdkVersion 28 and maps use 26 |
This solved the issue. Thank you so much! |
Hi, i tried this fix, but when i do that, i get this error:
Any help appreciated. |
Magic answer Just like:
|
Running RN 0.59.8 C:\Users\jorrh\Desktop\Projects\FitBoard\fitboard\android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found. C:\Users\jorrh.gradle\caches\transforms-1\files-1.1\design-26.1.0.aar\a6db251e9fbe69fc08fb3996b591f32d\res\values\values.xml:159:5-202: AAPT: error: resource android:attr/fontVariationSettings not found. C:\Users\jorrh.gradle\caches\transforms-1\files-1.1\design-26.1.0.aar\a6db251e9fbe69fc08fb3996b591f32d\res\values\values.xml:159:5-202: AAPT: error: resource android:attr/ttcIndex not found. error: failed linking references. |
THIS WORKS FOR ME |
I encountered this issue while upgrading a project from react-native:0.58.6 to 0.59.8, and thanks to @kimbui87, the solution was : |
I had to change the buildscript object in build.gradle to match with the emulator sdk version as
|
Try this. In gradle-wrapper.properties |
Sorry, I am facing the same problem now. Have you figured it out? |
@zhou7102 compare your |
I USE THIS WITH "react-native": "0.61.5" AND WORKS !!!! |
I want to say a thank you to my life saver! |
I'm Using 0.59.10 I Implement this solution, but New error Show up
|
Issue Description
Got this error just when I try to build for Android (on iOS is working fine):
FAILURE: Build failed with an exception.
Where:
Script '/Users/jon/RN/RNNv2Firebase/node_modules/react-native/react.gradle' line: 95
What went wrong:
A problem occurred configuring project ':app'.
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: