Comments (9)
@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.
@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.
@nohli can you try fix startup crash issue branch ?
https://github.com/florent37/Flutter-AssetsAudioPlayer/tree/fix-startup-crash-issue
from flutter-assetsaudioplayer.
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.
@nohli can you put here your whole build.gradle file ?
from flutter-assetsaudioplayer.
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.
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.
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.
@blueeyestw let's track the issue over here 😊
Have a couple of questions, just to make sure:
- 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 use3.1.0
)? - Are you experiencing the same amount of crashes, or less?
- Can you reproduce the issue locally (like in the steps to reproduce, or just run your own app)?
from flutter-assetsaudioplayer.
Related Issues (20)
- Play segment of larger mp3 file
- access error HOT 1
- Swift Compiler Error (Xcode) HOT 1
- ForegroundServiceStartNotAllowedException HOT 3
- I want to modify the loop mode in the middle.
- CustomMediaButtonReceiver.onReceive HOT 8
- Crash on release testflight on application launch
- playlistFinished event is triggering onData even before the song has completed
- Missing Now Playing Card on Android TV HOT 1
- Color OS and Oxygen OS issue
- Please update to UUID to 4.1.0 HOT 1
- What do I need to clean up after using Assets Audio Player?
- Exception ocurring leading to crash: android.app.ForegroundServiceStartNotAllowedException HOT 9
- Please update the latest version of assets_audio_player_web in pubspec.yaml file
- Open it and choose iOS, next song, previous song, or the previous 10 seconds and the next 10 seconds. HOT 1
- Buttons not working on notification in android 13
- two audio at same time
- Memory leaks
- Ios playlist feature is not working in ios
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-assetsaudioplayer.