Closed Seroleashed closed 6 years ago
"Unfortunately" this is not linked to "react-native-vector-icons" so I close this issue and go back to stackoverflow and ask the question there. If anybody is experiencing the same or similar issues, please head over to this post to find or at least help finding a solution ;-)
Please run this command react-native upgrade. This command will ask replace existing file or not. If you want to replace a particular file press Y and hit enter button or press N. After completing this command than run command react-native link. This command will link all dependencies than you can run command react native run-android /ios. This issue create when you uninstall some dependencies so sometimes it do not update build files like setting.gradle build.gradle etc.
Please run this command react-native upgrade. This command will ask replace existing file or not. If you want to replace a particular file press Y and hit enter button or press N. After completing this command than run command react-native link. This command will link all dependencies than you can run command react native run-android /ios. This issue create when you uninstall some dependencies so sometimes it do not update build files like setting.gradle build.gradle etc.
Thanks. It worked.
Please run this command react-native upgrade. This command will ask replace existing file or not. If you want to replace a particular file press Y and hit enter button or press N. After completing this command than run command react-native link. This command will link all dependencies than you can run command react native run-android /ios. This issue create when you uninstall some dependencies so sometimes it do not update build files like setting.gradle build.gradle etc.
this resolve my problem
Please run this command react-native upgrade. This command will ask replace existing file or not. If you want to replace a particular file press Y and hit enter button or press N. After completing this command than run command react-native link. This command will link all dependencies than you can run command react native run-android /ios. This issue create when you uninstall some dependencies so sometimes it do not update build files like setting.gradle build.gradle etc.
Yeah this worked for me..
Please run this command react-native upgrade. This command will ask replace existing file or not. If you want to replace a particular file press Y and hit enter button or press N. After completing this command than run command react-native link. This command will link all dependencies than you can run command react native run-android /ios. This issue create when you uninstall some dependencies so sometimes it do not update build files like setting.gradle build.gradle etc.
It worked for me
It wasnot work for me
error;;
Could not resolve all dependencies for configuration ':app:debugCompileClasspath'. More than one variant of project :@react-native-firebase_auth matches the consumer attributes:
- Configuration ':@react-native-firebase_auth:debugApiElements' variant android-aidl:
- Unmatched attributes:
- Found artifactType 'android-aidl' but wasn't required.
- Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
- Compatible attributes:
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-api' and found compatible value 'java-api'.
- Configuration ':@react-native-firebase_auth:debugApiElements' variant android-manifest:
- Unmatched attributes:
- Found artifactType 'android-manifest' but wasn't required.
- Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
- Compatible attributes:
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-api' and found compatible value 'java-api'.
- Configuration ':@react-native-firebase_auth:debugApiElements' variant android-renderscript:
- Unmatched attributes:
- Found artifactType 'android-renderscript' but wasn't required.
- Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
- Compatible attributes:
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-api' and found compatible value 'java-api'.* What went wrong: A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:debugCompileClasspath'. More than one variant of project :@react-native-firebase_auth matches the consumer attributes:
- Configuration ':@react-native-firebase_auth:debugApiElements' variant android-aidl:
- Unmatched attributes:
- Found artifactType 'android-aidl' but wasn't required.
- Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
- Compatible attributes:
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-api' and found compatible value 'java-api'.
- Configuration ':@react-native-firebase_auth:debugApiElements' variant android-manifest:
- Unmatched attributes:
- Found artifactType 'android-manifest' but wasn't required.
- Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
- Compatible attributes:
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-api' and found compatible value 'java-api'.
- Configuration ':@react-native-firebase_auth:debugApiElements' variant android-renderscript:
- Unmatched attributes:
- Found artifactType 'android-renderscript' but wasn't required.
- Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
- Compatible attributes:
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
- Required org.gradle.usage 'java-api' and found compatible value 'java-api'.
Please run this command react-native upgrade. This command will ask replace existing file or not. If you want to replace a particular file press Y and hit enter button or press N. After completing this command than run command react-native link. This command will link all dependencies than you can run command react native run-android /ios. This issue create when you uninstall some dependencies so sometimes it do not update build files like setting.gradle build.gradle etc.
it worked for me like magic. thanks a lot
Please run this command react-native upgrade. This command will ask replace existing file or not. If you want to replace a particular file press Y and hit enter button or press N. After completing this command than run command react-native link. This command will link all dependencies than you can run command react native run-android /ios. This issue create when you uninstall some dependencies so sometimes it do not update build files like setting.gradle build.gradle etc.
it worked for me too. Thanks a lot.
Hey everybody,
I am kind of new to the react-native thing so please excuse me for maybe making stupid mistakes.
I basically tried everything I could find before posting here and by now am not sure if this is something on my end (aka me being stupid) or a bug due to recent updates somewhere.
So, my problem is the error message mentioned above which I am getting when trying to build the app (either by using "react-native run-android" or even with "gradlew clean"). I post the full error message below as well as my app/build.gradle, build.gradle and settings.gradle files.
I left all the files the way they were created by "react-native init" and "just" added the commands I had to add according to the respective libraries' installation guides.
Due to recent changes in the Firebase SDKs I had to change quite a bit when it comes to gradle version, etc. which is why I wonder if this issue has anything to do with that?!
Oh, and the version numbers: "dependencies": { "babel-core": "^6.26.3", "eslint": "^4.19.1", "fbjs": "^0.8.16", "react": "16.3.1", "react-native": "0.55.4", "react-native-firebase": "^4.1.0", "react-native-navigation": "^1.1.458", "react-native-vector-icons": "^4.6.0", "react-redux": "^5.0.7", "redux": "^4.0.0", "redux-logger": "^3.0.6", "redux-thunk": "^2.2.0" }
I installed every package with yarn ("yarn add react-native-vector-icons", etc.) and npm ("npm install", as well as "npm install react-native-vector-icons", etc.) to make sure it's not related to any of those. In between I removed the whole node_modules folder of course. Neither did "react-native link" help.
I appreciate any help and hints!
Thank you very much in advance!
Dustin
ERROR MESSAGE:
APP/BUILD.GRADLE:
BUILD.GRADLE:
SETTING.GRADLE: