-
Notifications
You must be signed in to change notification settings - Fork 24.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
Android AAPT: No resource identifier found for attribute 'appComponentFactory' in package 'android' #25296
Comments
We are automatically closing this issue because it does not appear to follow any of the provided issue templates. 👉 Click here if you want to report a reproducible bug or regression in React Native. |
android\app\build\intermediates\manifests\full\release\AndroidManifest.xml:63: AAPT: No resource identifier found for attribute 'appComponentFactory' in package 'android' FAILURE: Build failed with an exception.
|
hey ant one find any solution, i am getting same issue |
warning: string 'ucrop_error_input_data_is_absent' has no default translation. FAILURE: Build failed with an exception.
|
Facing the same issue. How to resolve?? |
Same here. Error is thrown local and in bitrise. |
These bots are quick to close issues for no valid reason😅😅... I'm also facing this issue... Can't seem to find a fix online |
Maybe related to this: https://developers.google.com/android/guides/releases#june_17_2019 |
Could be so... |
This worked for me. implementation(project(":react-native-push-notification"), { After that the notifications stopped working here so I have to add this in my app/android/build.gradle: Now its working perfectly! See the issue: #25293 |
Also experiencing this issue - have reverted to previous commits and getting the same error, which suggests it's an external issue (like the Google news link given) |
@viniciusoliveira01 Thanks mate! Your solution worked perfectly! |
Any update in the issue? I solved my issue. In my case Also my compileSdkVersion needed to be upgraded to 29. My buid.gradle:ext {
compileSdkVersion = 29
googlePlayServicesVersion = "15.0.0"
firebaseVersion = "17.3.4"
} These 2 coments helped me solve it |
Hi guys any update about this issue. i am facing the same |
Add this to the end of your app/build.gradle dependencies, it forces the gcm library version- so then the third party libraries you're using in your project that are dependent on it, don't break configurations.all { |
also came across this problem, is there a solution? |
@udaisubramaniam solved my problem ! Thanks ! |
Problem solved. In my case i only add this line in my build.gradle file ext {
} |
|
@heldercunha thanks dude, you are hero |
@heldercunha Thanks it worked perfectly. |
None of the solutions work for me, are there any other options to fix the problem? |
@heldercunha Thanks, it worked perfectly |
It worked for me by adding below lines Android/App/build.gradle Changed below line To AND in Android/build.gradle |
After upgrading react-native-device-info to the latest version (2.1.1) and changed compile SDK from 27 to 28, I am getting below error Execution failed for task ':app:transformClassesWithJarMergingForRelease'.
What should I do next? |
Add this section to dependencies.gradle file configurations.all { |
but am not using any firebase in my project // Top-level build file where you can add configuration options common to all sub-projects/modules. subprojects { subprojects { buildscript { ext {
} subprojects { subprojects { allprojects { |
@Pradeep-DCPL LifeSaviour <3 |
After a little tour on the internet. I did this. Step 1:
Step 2: Step 3: Step 4: |
thanks to @udaisubramaniam. Fixed with this at the end of your
that fixes two issues:
Explanation: gms has upgraded to androidx so all the libs that use it as dependency had defined it as Solutions:
I will wait until all the libs upgrade to androidx and then migrate the project to rn60 UPDATE: Seeing the this is my
also i'm using Useful resources #25307 |
I'm having the same problem, I've tried everything and I haven't been luck. android/build.gradle `
} ` app/build.gradle `
} apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' ` I already have test all fixes in the previous posts and nothing seems to work for me. |
you have to upgrade to android 28, i will update my last answer, check it my |
Hi, i'm using cordova apache for mobile apps, but i got the same error when i compile. I'm using too firebase and google maps plugin's. I did all the posible solutions that you show here with the build.gradle |
@cesarPHP did you migrate to androidx? |
mmm, no, how i do that? |
I've tried all of the solutions here, but it still doesn't work. This issue is due to some libs we are using already upgrade to AndroidX. The ways to solve this are:
|
same problem |
@bundamasakan did you try the above? if not... then you need to install jetifier
This will help migrate your project to android x and resolve all conflicts... you might have to jetify your project every time you npm install |
still with the same problem. |
If you did jetify. Remove all references to The duplicates are cause by |
@dengue8830 I owe you a beer sir, your solution of adding
resolved my situation without having to tinker with anything else. I wish I understood what any of this does better. I get really stressed out when these random google issues occur! |
@andrewhartwig that forces the project to use that specific version of that lib for all the implicit dependencies used within the libs you have installed. If you check the versions of that lib (gcm) you will see the latest versions are 16.1 and 17 and if you check inside of each one, version 17 has androidx dependencies. So the problem the other guys have are in the same direction, they are using some lib that has androidx as dependency (just like gcm example). You guys should execute the command that draws a dependency tree (you can find that in the resources mentioned above) and there you will see wich lib is using androidx so you can include it in the |
Thank you @dengue8830 great explanation! |
please help I am stuck in push notification issue.I have tried all the above solution. my buildscript {
} allprojects { task wrapper(type: Wrapper) { and my app build gradle is: import com.android.build.OutputFile /**
project.ext.react = [ apply from: "../../node_modules/react-native/react.gradle" /**
/**
android {
} dependencies {
} // Run this once to be able to run the application with BUCK // apply plugin: 'com.google.gms.google-services'` the app crashes whenever the push-notification is called in my login.js file: import gql from 'graphql-tag'; // true means invalid, so our conditions got reversed } componentWillMount(){
} } componentWillUnmount() { } /* BackHandler.addEventListener('hardwareBackPress', function() { } //Exit app wih back button press if (this.props.isFocused) { // registerToken = (mob,slugSocName)=>{ // PushNotification.configure({ // AsyncStorage.setItem('token', JSON.stringify(token)); // } registerToken = (mob,slugSocName)=>{ console.log("In reg ::",mob, slugSocName) try { PushNotification.configure({
}); } catch (error) { updateTokenInDB = (mob, token,slugSocName)=>{ // const user = JSON.parse(this.state.admin) console.log('in updateTokenDB ::',mob,token) this.props.UpdateUserToken({
} //get app language componentDidMount() { );
}); connection() { if(isConnected == true) } signUp = () => {
}
} // Verify User /* //Verify user
} showAlert = () => { hideAlert = () => { render () {
} // export default Login; const LoginPage = compose( )(Login) export default LoginPage; |
@Alferdize
in build.gradle I added
Hope it helps. |
Now I found the solution! And also use |
this is frustrating, i'm working on cordova app & tried everything above, none of those works for me. edit: found the issue. what i did is |
Wow, what a rubbish platform for developing apps. And yet people use RN. |
@FunkyLambda are you a Flutter Dev?? |
For an explanation of the two fixes this article is great: |
@PixClix Niiiice! Worked for me. Changed my |
Thanks, your suggestion works for me. As a side note, consider being sure that |
🚨 The issue tracker is not for questions. 🚨
As it happens, support requests that are created as issues are likely to be closed. We want to make sure you are able to find the help you seek. Please take a look at the following resources.
Coding Questions
https://stackoverflow.com/questions/tagged/react-native
If you have a coding question related to React Native, it might be better suited for Stack Overflow. It's a great place to browse through frequent questions about using React Native, as well as ask for help with specific questions.
Talk to other React Native developers
https://www.reactiflux.com/
Reactiflux is an active community of React and React Native developers. If you are looking for immediate assistance or have a general question about React Native, the #react-native channel is a good place to start.
If you want to participate in casual discussions about the use of React Native, consider participating in one of the following forums:
If you'd like to discuss topics related to the future of React Native, or would like to propose a new feature or change before sending a pull request, please check out the discussions and proposals repo:
The text was updated successfully, but these errors were encountered: