Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: <identifier> expected with package com.native

I followed this instructions to setup android requirements and initiate a project with react-native. When I try to run the application using the command react-native run-android, it keeps showing this error then exiting the process.

/path/to/native/android/app/src/main/java/com/native/MainActivity.java:1: error: <identifier> expected
package com.native;
            ^
like image 523
Mohebifar Avatar asked Sep 03 '25 14:09

Mohebifar


1 Answers

The package name should not be a language tag. Try the other keyword for the package Like

package com.nativeapp or package com.appnative

like image 180
AliRehman7141 Avatar answered Sep 05 '25 06:09

AliRehman7141