Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i cant run examle. please help 0.0 #109

Closed
lwy980328 opened this issue Oct 21, 2022 · 1 comment
Closed

i cant run examle. please help 0.0 #109

lwy980328 opened this issue Oct 21, 2022 · 1 comment
Assignees

Comments

@lwy980328
Copy link

Describe the bug
i clone this project and just run it.

Expected behavior
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
E/AndroidRuntime(23586): FATAL EXCEPTION: main
E/AndroidRuntime(23586): Process: com.dartnative.dart_native_example, PID: 23586
E/AndroidRuntime(23586): java.lang.RuntimeException: Unable to instantiate application com.dartnative.dart_native_example.Application: java.lang.ClassNotFoundException: Didn't find class "com.dartnative.dart_native_example.Application" on path: DexPathList[[zip file "/data/app/com.dartnative.dart_native_example-qBtK-PiOChwbKmJqkiZg9A==/base.apk"],nativeLibraryDirectories=[/data/app/com.dartnative.dart_native_example-qBtK-PiOChwbKmJqkiZg9A==/lib/arm64, /data/app/com.dartnative.dart_native_example-qBtK-PiOChwbKmJqkiZg9A==/base.apk!/lib/arm64-v8a, /system/lib64]]
E/AndroidRuntime(23586): at android.app.LoadedApk.makeApplication(LoadedApk.java:1070)
E/AndroidRuntime(23586): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6199)
E/AndroidRuntime(23586): at android.app.ActivityThread.access$1500(ActivityThread.java:218)
E/AndroidRuntime(23586): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1803)
E/AndroidRuntime(23586): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(23586): at android.os.Looper.loop(Looper.java:223)
E/AndroidRuntime(23586): at android.app.ActivityThread.main(ActivityThread.java:7035)
E/AndroidRuntime(23586): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(23586): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/AndroidRuntime(23586): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:937)
E/AndroidRuntime(23586): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.dartnative.dart_native_example.Application" on path: DexPathList[[zip file "/data/app/com.dartnative.dart_native_example-qBtK-PiOChwbKmJqkiZg9A==/base.apk"],nativeLibraryDirectories=[/data/app/com.dartnative.dart_native_example-qBtK-PiOChwbKmJqkiZg9A==/lib/arm64, /data/app/com.dartnative.dart_native_example-qBtK-PiOChwbKmJqkiZg9A==/base.apk!/lib/arm64-v8a, /system/lib64]]
E/AndroidRuntime(23586): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
E/AndroidRuntime(23586): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime(23586): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime(23586): at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:50)
E/AndroidRuntime(23586): at androidx.core.app.CoreComponentFactory.instantiateApplication(CoreComponentFactory.java:47)
E/AndroidRuntime(23586): at android.app.Instrumentation.newApplication(Instrumentation.java:1122)
E/AndroidRuntime(23586): at android.app.LoadedApk.makeApplication(LoadedApk.java:1062)
E/AndroidRuntime(23586): ... 9 more

Desktop (please complete the following information):
win
flutter 2.2.3

Smartphone (please complete the following information):
meizu 16s
android 9

Additional context
Add any other context about the problem here.

@lwy980328
Copy link
Author

....i solved it
in dart_native/example/android/app/src/main/AndroidManifest.xml

delete android:name="${applicationName}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants