-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unable to find a matching configuration of project :react-native-code-push: - None of the consumable configurations have attributes. #1873
Comments
Same exact thing happen to me on Android only, iOS working fine. react-native-code-push version:6.2.1 |
Just got it working by adding below code on
I realized after reading the new version changelog |
Hi @ElyDev, All steps for installing the latest version of the plugin are described in our documentation: https://github.com/microsoft/react-native-code-push/blob/master/docs/setup-android.md#android-setup I'm going to close this issue for now. Please feel free to reopen it if you have any questions or issues. |
Hi @andreidubov , those are the exact steps I followed, and I got the error described above. |
I did this as well (see my original repro steps), yet still failing. |
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) just remove line apply from: "../../node_modules/react-native/react.gradle" in /app/build.gradle |
I'm getting this issue as well after upgrading to RN 0.62.2. I went through the setup again but that didn't solve it. This issue should be reopened again. |
@N1ghtly Thanks for reporting! We will check it again |
@andreidubov we found a fix. We moved the following lines to the top of the settings.gradle file, and moved to codepush lines to the bottom of the file:
|
i have also this problem i do all think but my error not solve please help me |
not working for me |
Adding solved issue |
@N1ghtly solution fixed for me.
|
Hi everybody, I'm going to close the issue. Feel free to ping again if something related to the issue is still needed to be done so we could revisit it and see what else we can do. |
In my case, I had to put this on the last line. It worked . |
Good job! |
Thanks it works now. |
I spent 5 hours trying to resolve the issue before I came across this and it finally worked!! |
I am having same issue, but unable to resolve this by moving the mentioned lines to the top as below:
My current settings.gradle file is as below:
Build Failure:
|
Thank you. This worked for me. |
rootProject.name = 'gwUsersAppNew' I fixed it by keeping code in this order |
Be sur to not include For example don't do this :
You need to remove the |
Steps to Reproduce
I followed the steps in the docs here: https://github.com/microsoft/react-native-code-push/blob/master/docs/setup-android.md to setup code push for android in my RN project.
npm install --save react-native-code-push
6- Build
Expected Behavior
build to succeed
Actual Behavior
Build failed
Unable to find a matching configuration of project :react-native-code-push:
Reproducible Demo
Examples
folder runnode create-app.js appName react-native@0.61.5 react-native-code-push@6.0.0
command to generate plain CodePushified React Native app. Please see description on top ofcreate-app.js
file content if neededEnvironment
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
(The more info the faster we will be able to address it!)
The text was updated successfully, but these errors were encountered: