简体   繁体   中英

Expo Eject working on iOS but not running on Android

I just created a whole fresh project using expo init and then ejected it with ExpoKit. It runs fine and smoothly on iOS but on android studio after I sync my gradle (successful) but when I try to run my app I hit the error below:-

/Users/hannzern/react-native-base/android/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml:2: AAPT: error: attribute 'package' in <manifest> tag is not a valid Android package name: 'com.hannzern.expo-rn-base'.

I just checked my app/build.gradle and my applicationId is correct 'com.hannzern.expo-rn-base'. Is there something I'm doing wrong? I am currently on SDK 37.0.0 and with react-native at 0.61.4

You cannot use dashes in your Android package name. For reference please see this question .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM