tschoffelen / react-native-email-link

📭 Open an email client from React Native (for 'magic link' type functionality).
MIT License
394 stars 70 forks source link

Error running on Android #98

Closed jlounds closed 2 years ago

jlounds commented 2 years ago

Hello - I am having a problem getting my project to run on locally on the Android emulator after installing (and adding the sample "openComposer" code for a test)

Yarn version 1.22.17 (I just migrated this project from npm, if that makes a difference?) React Native ~0.63.3

Execution failed for task ':app:processDebugResources'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource linking failed project_name/node_modules/react-native-email-link/android/build/intermediates/library_manifest/debug/AndroidManifest.xml:11:5-17:15: AAPT: error: unexpected element found in .

Thanks in advance!

gustabessa commented 2 years ago

Hello! I was running into the same issue. In my case, upgrading the project's gradle version then running cd android && ./gradlew clean solved it!

This article helped me solve my issue: https://stackoverflow.com/questions/62969917/how-to-fix-unexpected-element-queries-found-in-manifest-error

Hope it helps you and everyone who gets here too!