Hi, there
I want to upgrade exoplayer library from 1.2.0 to 1.6.0, I downloaded relate aar files to replace the old files in libs directory, and modified SimpleExoPlayerWrapper.java, then compile it by simplelibrarycompiler, all steps are ok.
When I recompile and run ExoPlayerExample, I get these error message
How to fix it? Thanks
I want to upgrade exoplayer library from 1.2.0 to 1.6.0, I downloaded relate aar files to replace the old files in libs directory, and modified SimpleExoPlayerWrapper.java, then compile it by simplelibrarycompiler, all steps are ok.
When I recompile and run ExoPlayerExample, I get these error message
How to fix it? Thanks
B4X:
--------- beginning of crash
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
b4xmainpage_b4xpage_created (java line: 40)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:155)
at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
at anywheresoftware.b4a.objects.B4XViewWrapper.LoadLayout(B4XViewWrapper.java:329)
at b4a.example.exoplayer.b4xmainpage._b4xpage_created(b4xmainpage.java:40)
at b4a.example.exoplayer.b4xmainpage.callSub(b4xmainpage.java:86)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1098)
at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1069)
at b4a.example.exoplayer.b4xpagesmanager._createpageifneeded(b4xpagesmanager.java:528)
at b4a.example.exoplayer.b4xpagesmanager._showpage(b4xpagesmanager.java:865)
at b4a.example.exoplayer.b4xpagesmanager._addpage(b4xpagesmanager.java:199)
at b4a.example.exoplayer.b4xpagesmanager._addpageandcreate(b4xpagesmanager.java:206)
at b4a.example.exoplayer.b4xpagesmanager._initialize(b4xpagesmanager.java:716)
at b4a.example.exoplayer.main._activity_create(main.java:365)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
at b4a.example.exoplayer.main.afterFirstLayout(main.java:105)
at b4a.example.exoplayer.main.access$000(main.java:17)
at b4a.example.exoplayer.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:147)
... 26 more
Caused by: java.lang.NoSuchFieldError: No static field exo_image of type I in class Landroidx/media3/ui/R$id; or its superclasses (declaration of 'androidx.media3.ui.R$id' appears in /data/app/b4a.example.exoplayer-2/base.apk)
at androidx.media3.ui.PlayerView.<init>(PlayerView.java:513)
at androidx.media3.ui.PlayerView.<init>(PlayerView.java:347)
at androidx.media3.ui.PlayerView.<init>(PlayerView.java:343)
at anywheresoftware.b4a.objects.SimpleExoPlayerViewWrapper._initialize(SimpleExoPlayerViewWrapper.java:47)
... 30 more