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

Could not get unknow property 'mergeResourcesProvider' when I run my app on android #24022

Closed
Arat2003 opened this issue Mar 19, 2019 · 11 comments
Labels
Bug Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.

Comments

@Arat2003
Copy link

I am getting this error when I run the app on Android

  • Where:
    Script 'C:\reactnative\auth\node_modules\react-native\react.gradle' line: 95

  • What went wrong:
    A problem occurred configuring project ':app'.

Could not get unknown property 'mergeResourcesProvider' for object of type com.android.build.gradle.internal.api.ApplicationVariantImpl.

##Environment
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz
Memory: 6.96 GB / 15.91 GB
Binaries:
Yarn: 1.13.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.3.0.0 AI-182.5107.16.33.5314842

@react-native-bot react-native-bot added the Platform: Android Android applications. label Mar 19, 2019
@react-native-bot
Copy link
Collaborator

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.

@anwargul0x
Copy link

I am also facing the same issue
React Native Environment Info:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz
Memory: 593.94 MB / 3.89 GB
Binaries:
Yarn: 1.12.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5056338

@Arat2003
Copy link
Author

I am also facing the same issue
React Native Environment Info:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz
Memory: 593.94 MB / 3.89 GB
Binaries:
Yarn: 1.12.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5056338

I just re-did the whole project, fortunately, I was just beginning to code the app.

@Arat2003
Copy link
Author

I just re-did the whole project, fortunately, I was just beginning to code the app.
Although I would still like to find a solution

@jjskay
Copy link

jjskay commented Mar 20, 2019

Same problem from RN upgrade(Android)
v0.58.6 -> v0.59.1
React Native Environment Info:

    System:
      OS: macOS 10.14.1
      CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
      Memory: 18.05 MB / 8.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.0.0 - /usr/local/bin/node
      Yarn: 1.12.3 - /usr/local/bin/yarn
      npm: 6.8.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
      Android Studio: 1.5 AI-141.2836215
      Xcode: /undefined - /usr/bin/xcodebuild
    npmPackages:
      react: ^16.6.3 => 16.8.4
      react-native: ~0.59.1 => 0.59.1
    npmGlobalPackages:
      react-native-cli: 2.0.1

@sasurau4
Copy link
Contributor

I faced with the same problem and this workaround works for me.
wix/react-native-navigation#4757 (comment)

@cpojer
Copy link
Contributor

cpojer commented Mar 20, 2019

Please check out the workaround.

@cpojer cpojer closed this as completed Mar 20, 2019
@jeronnex2
Copy link

after editing it this happened to me

Build file 'D:\projects\feb\android\app\build.gradle' line: 1

  • What went wrong:
    A problem occurred evaluating project ':app'.

Failed to apply plugin [id 'com.android.application']
Minimum supported Gradle version is 4.10.1. Current version is 4.4. If using the gradle wrapper, try editing the distributionUrl in D:\projects\feb\android\gradle\wrapper\gradle-wrapper.properties to gradle-4.10.1-all.zip

@anwargul0x
Copy link

For me this issue was resolved just after I run my project from Android studio

@DavidPineda
Copy link

the same problem when updating to v0.59.1, I could solve it by updating gradle and the compilation version to 28.

in /android/build.gradle

buildscript {
ext {
minSdkVersion = 21
compileSdkVersion = 28
targetSdkVersion = 26
supportLibVersion = "28.0.0"
playServicesVersion = "15.0.1"
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
}
}

allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
url 'https://maven.google.com'
}
}
configurations.all {
resolutionStrategy.force "com.android.support:support-v4:${rootProject.ext.supportLibVersion}"
}
}

in /android/gradle/wrapper/gradle-wrapper.properties

distributionUrl=https://services.gradle.org/distributions/gradle-4.10.2-all.zip

@Ditto92
Copy link

Ditto92 commented May 22, 2019

bug1
ERROR: Could not get unknown property 'mergeResourcesProvider' for object of type com.android.build.gradle.internal.api.ApplicationVariantImpl.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

9 participants