Giter Site home page Giter Site logo

Comments (9)

kalismeras61 avatar kalismeras61 commented on September 24, 2024

@nohli i don't have real device, i just tested with emulator Pixel 6 and 7 and i don't have any issue

from flutter-assetsaudioplayer.

nohli avatar nohli commented on September 24, 2024

@kalismeras61, this issue doesn't occur on a local Pixel 6 emulator on my side either.
I've updated the steps to reproduce the problem.

from flutter-assetsaudioplayer.

kalismeras61 avatar kalismeras61 commented on September 24, 2024

@nohli can you try fix startup crash issue branch ?

https://github.com/florent37/Flutter-AssetsAudioPlayer/tree/fix-startup-crash-issue

from flutter-assetsaudioplayer.

nohli avatar nohli commented on September 24, 2024

Unfortunately still the same exception

E/AndroidRuntime(14742): FATAL EXCEPTION: main
E/AndroidRuntime(14742): Process: com.example.audioplayer_test, PID: 14742
E/AndroidRuntime(14742): java.lang.RuntimeException: Unable to create service com.github.florent37.assetsaudioplayer.notification.NotificationService: java.lang.ClassNotFoundException: Didn't find class "com.github.florent37.assetsaudioplayer.notification.NotificationService" on path: DexPathList[[zip file "/data/app/~~XMy4v6ZU4DnhnvM_PxBQyA==/com.example.audioplayer_test-s6vgELe2m4pyAP_BVEmEFw==/base.apk"],nativeLibraryDirectories=[/data/app/~~XMy4v6ZU4DnhnvM_PxBQyA==/com.example.audioplayer_test-s6vgELe2m4pyAP_BVEmEFw==/lib/arm64, /data/app/~~XMy4v6ZU4DnhnvM_PxBQyA==/com.example.audioplayer_test-s6vgELe2m4pyAP_BVEmEFw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
E/AndroidRuntime(14742): 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4498)
E/AndroidRuntime(14742): 	at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
E/AndroidRuntime(14742): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2161)
E/AndroidRuntime(14742): 	at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(14742): 	at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime(14742): 	at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime(14742): 	at android.app.ActivityThread.main(ActivityThread.java:7872)
E/AndroidRuntime(14742): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(14742): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime(14742): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/AndroidRuntime(14742): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.github.florent37.assetsaudioplayer.notification.NotificationService" on path: DexPathList[[zip file "/data/app/~~XMy4v6ZU4DnhnvM_PxBQyA==/com.example.audioplayer_test-s6vgELe2m4pyAP_BVEmEFw==/base.apk"],nativeLibraryDirectories=[/data/app/~~XMy4v6ZU4DnhnvM_PxBQyA==/com.example.audioplayer_test-s6vgELe2m4pyAP_BVEmEFw==/lib/arm64, /data/app/~~XMy4v6ZU4DnhnvM_PxBQyA==/com.example.audioplayer_test-s6vgELe2m4pyAP_BVEmEFw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
E/AndroidRuntime(14742): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
E/AndroidRuntime(14742): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime(14742): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime(14742): 	at android.app.AppComponentFactory.instantiateService(AppComponentFactory.java:129)
E/AndroidRuntime(14742): 	at androidx.core.app.CoreComponentFactory.instantiateService(CoreComponentFactory.java:75)
E/AndroidRuntime(14742): 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4467)
E/AndroidRuntime(14742): 	... 9 more

from flutter-assetsaudioplayer.

kalismeras61 avatar kalismeras61 commented on September 24, 2024

@nohli can you put here your whole build.gradle file ?

from flutter-assetsaudioplayer.

nohli avatar nohli commented on September 24, 2024

As mentioned in the steps to reproduce, the vanilla gradle file from flutter create already has this issue.

The only necessary change was adding multidex true to android/app/build.gradle for the project to build.

from flutter-assetsaudioplayer.

kalismeras61 avatar kalismeras61 commented on September 24, 2024

As mentioned in the steps to reproduce, the vanilla gradle file from flutter create already has this issue.

The only necessary change was adding multidex true to android/app/build.gradle for the project to build.

Yes i know, as i said, i can't reproduce it, if you are using minified in your build gradle maybe it is removing some classes. That's why i asked.

from flutter-assetsaudioplayer.

nohli avatar nohli commented on September 24, 2024

Also not with Pixel 7 API 33 with Google Play?

I'm using Flutter 3.10.6 and an Apple Silicon Mac. The crashes were in production built with Codemagic, so not only a local issue.

@kalismeras61 I just tried it, and the app worked without issues. Then created another fresh app, and it also worked. Then wiped the data of the emulator, then it started failing again. So please make sure to wipe the data first.

from flutter-assetsaudioplayer.

nohli avatar nohli commented on September 24, 2024

@blueeyestw let's track the issue over here 😊

Have a couple of questions, just to make sure:

  1. In your latest app version, what's the version for assets_audio_player in pubspec.lock (a ^3.0.6 in pubspec.yaml means >=3.0.6 <4.0.0 and would use 3.1.0)?
  2. Are you experiencing the same amount of crashes, or less?
  3. Can you reproduce the issue locally (like in the steps to reproduce, or just run your own app)?

from flutter-assetsaudioplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.