Hey team! i need your help! im trying to run my sa...
# android
e
Hey team! i need your help! im trying to run my sample app. I have an Application class and added in the Manifest file but im having this issue
not kotlin but kotlin colored 3
java.lang.RuntimeException: Unable to instantiate application com.example.compasstest.CompassApp: java.lang.ClassNotFoundException: Didn't find class "com.example.compasstest.CompassApp" on path: DexPathList[[zip file "/data/app/~~OmJDDz78XCYP77AdcfpeIw==/com.example.compasstest-oFYQOINhPMsOmrN8d0jBXA==/base.apk"],nativeLibraryDirectories=[/data/app/~~OmJDDz78XCYP77AdcfpeIw==/com.example.compasstest-oFYQOINhPMsOmrN8d0jBXA==/lib/arm64, /system/lib64, /system_ext/lib64]]
Copy code
<application
    android:name=".CompassApp"
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/Theme.CompassTest"
    tools:targetApi="31">
and this is my Application class:
Copy code
class CompassApp : Application() {
    override fun onCreate() {
        super.onCreate()
        startKoin {
            androidContext(this@CompassApp)
            modules(appModule)
        }
    }
}
c
Image from iOS.jpg
e
thanks