flyingdutchman Posted December 7, 2018 Share Posted December 7, 2018 @maxmp My skin suddenly stopped loading. the default skin is restored. Looking at the stacktrace it appears to be a layout issue. android.view.InflateException: File: com.maxmpz.audioplayer:layout/activity_list_fast -> Binary XML file line #53: Binary XML file line #53: You must supply a layout_width attribute. 2018-12-07 14:14:44.732 28832-28832/? E/BaseActivity: handleLayoutFailure=>resetSkinOnFail 2018-12-07 14:14:44.733 28832-28832/? E/BaseActivity: Skin failed: skins.v3.Poweramp.yaps, resetting to default android.view.InflateException: File: com.maxmpz.audioplayer:layout/activity_list_fast -> Binary XML file line #53: Binary XML file line #53: You must supply a layout_width attribute. Caused by: java.lang.UnsupportedOperationException: Binary XML file line #53: You must supply a layout_width attribute. at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:775) at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:7919) at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:8111) at android.widget.FrameLayout$LayoutParams.<init>(FrameLayout.java:439) at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:370) at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:368) at qt.null(":1013) at qt.null(":846) at tm.null(":278) at qt.inflate(":403) at qt.inflate(":352) at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:469) at android.app.Activity.setContentView(Activity.java:2794) at com.maxmpz.audioplayer.BaseActivity.null(":572) at com.maxmpz.audioplayer.BaseActivity.setContentView(":567) at com.maxmpz.audioplayer.ListActivity.onCreate(":108) at android.app.Activity.performCreate(Activity.java:7258) at android.app.Activity.performCreate(Activity.java:7249) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1222) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3059) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1724) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:7000) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408) 2018-12-07 14:14:44.758 2939-3131/? E/MdnieScenarioControlService: Exception : java.io.FileNotFoundException: /sys/class/mdnie/mdnie/scenario (No such file or directory) , in : null , value : null , length : 0 2018-12-07 14:14:44.765 4124-27987/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0 2018-12-07 14:14:44.765 4124-27987/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0 2018-12-07 14:14:44.895 4733-4896/? E/ApplicationPackageManager: checkSettingsForIconTray value : 0 2018-12-07 14:14:45.157 2939-3092/? E/WindowManager: win=Window{d96d9a8 u0 Splash Screen com.maxmpz.audioplayer EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0, caller=com.android.server.wm.AppWindowToken.destroySurfaces:748 com.android.server.wm.AppWindowToken.destroySurfaces:732 com.android.server.wm.WindowState.onExitAnimationDone:5646 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:553 com.android.server.wm.DisplayContent.lambda$-com_android_server_wm_DisplayContent_21578:476 2018-12-07 14:14:45.181 2939-3131/? E/MdnieScenarioControlService: Exception : java.io.FileNotFoundException: /sys/class/mdnie/mdnie/scenario (No such file or directory) , in : null , value : null , length : 0 2018-12-07 14:14:45.185 2939-3092/? E/WindowManager: win=Window{715b569 u0 Splash Screen skins.v3.Poweramp.yaps EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0, caller=com.android.server.wm.AppWindowToken.destroySurfaces:748 com.android.server.wm.AppWindowToken.destroySurfaces:732 com.android.server.wm.WindowState.onExitAnimationDone:5646 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:517 com.android.server.wm.AppWindowToken.stepAppWindowsAnimation:1745 2018-12-07 14:14:45.393 2939-3092/? E/WindowManager: win=Window{4e38c2e u0 Splash Screen com.maxmpz.audioplayer EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0, caller=com.android.server.wm.AppWindowToken.destroySurfaces:748 com.android.server.wm.AppWindowToken.destroySurfaces:732 com.android.server.wm.WindowState.onExitAnimationDone:5646 com.android.server.wm.AppWindowAnimator.stepAnimationLocked:517 com.android.server.wm.AppWindowToken.stepAppWindowsAnimation:1745 2018-12-07 14:14:45.424 28832-28832/? E/ActivityThread: Activity com.maxmpz.audioplayer.ListActivity has leaked ServiceConnection jz$1@21b446e that was originally bound here android.app.ServiceConnectionLeaked: Activity com.maxmpz.audioplayer.ListActivity has leaked ServiceConnection jz$1@21b446e that was originally bound here at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1574) at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1466) at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1684) at android.app.ContextImpl.bindService(ContextImpl.java:1636) at android.content.ContextWrapper.bindService(ContextWrapper.java:703) at jz.null(":123) at jz$null.null(":40) at com.maxmpz.audioplayer.widget.PlayerConnectionBehavior.<init>(":77) at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:334) at tm.null(":216) at tm.null(":118) at qt.null(":660) at qt.null(":1009) at qt.null(":846) at tm.null(":278) at qt.inflate(":403) at qt.inflate(":352) at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:469) at android.app.Activity.setContentView(Activity.java:2794) at com.maxmpz.audioplayer.BaseActivity.null(":572) at com.maxmpz.audioplayer.BaseActivity.setContentView(":567) at com.maxmpz.audioplayer.ListActivity.onCreate(":108) at android.app.Activity.performCreate(Activity.java:7258) at android.app.Activity.performCreate(Activity.java:7249) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1222) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3059) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1724) Link to comment Share on other sites More sharing options...
maxmp Posted December 7, 2018 Share Posted December 7, 2018 Poweramp build would be useful (and the skin used). Thanks! Line #53 is TopContainer, so that style misses layout width in the skin for some reason (or it's not recognized). Link to comment Share on other sites More sharing options...
flyingdutchman Posted December 7, 2018 Author Share Posted December 7, 2018 Of course. V812 and yaps skin. I will investigate topcontainer but i had removed all the styling, no alternative style sheets, just the bare bones to test where an error could occur. Perhaps something with my device? Samsung tab A Link to comment Share on other sites More sharing options...
maxmp Posted December 7, 2018 Share Posted December 7, 2018 Android version? Not reproducible on Samsungs @ 8.0 (tried version from Play, btw, I guess you need to add "Poweramp v3 skin" somewhere in description or so as it's hard to find it on Play). Link to comment Share on other sites More sharing options...
flyingdutchman Posted December 7, 2018 Author Share Posted December 7, 2018 Android 8.1. I will try and discover where the issue might be. I have already recreated a new package with the recommended naming. Link to comment Share on other sites More sharing options...
flyingdutchman Posted December 9, 2018 Author Share Posted December 9, 2018 @maxmp the layout issue seems to lie with Android Studio. Your "out of the box" sample skin has the same issue. However, when I create a signed .apk, it installs ok. Link to comment Share on other sites More sharing options...
maxmp Posted December 9, 2018 Share Posted December 9, 2018 Have you recently updated AS and if yes, what is your version now? Do you use any beta android sdk components? Link to comment Share on other sites More sharing options...
flyingdutchman Posted December 9, 2018 Author Share Posted December 9, 2018 Yes, rebuilt from scratch. standard install with the following api's. No extra sdk's or plugins Link to comment Share on other sites More sharing options...
Mrmahdi Posted December 9, 2018 Share Posted December 9, 2018 1 hour ago, flyingdutchman said: Yes, rebuilt from scratch. standard install with the following api's. No extra sdk's or plugins Do I really see that you have not installed sdk Android 6 and 7 on Android Studio. There is also a problem with the problem. Is it not about installing the two packages? You may have to install the two packages and compile the program again. ? Link to comment Share on other sites More sharing options...
flyingdutchman Posted December 9, 2018 Author Share Posted December 9, 2018 @Mrmahdi the installed api version versions have no bearing on the compilation and creation of packages. They are there to test against. Given I am at present unable to test on virtual devices due to the fact that Poweramp does not provide an x86 version, the only versions I can test against is using physical devices such as samsung tab a android 8.1 and motorola phone android v6.0.1 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.