Just delete all the generated Java code. You do not need this if you want a purely native activity. The only thing you need to do is configure the Android manifest file, as shown in the documentation. In particular, you will need:
<meta-data android:name="android.app.lib_name" android:value="native-activity" />
And you will need to modify jni / Android.mk so that it creates jni with the name lib_name.
source share