android-money-manager-ex icon indicating copy to clipboard operation
android-money-manager-ex copied to clipboard

Crash when calling asset allocation menu item and edit stock transaction

Open funrider1 opened this issue 5 years ago • 6 comments

If the menu item "asset allocation" is selected, the APP crashes.

Version 2019.02.24.1 (996)

02-28 19:10:16.057 21941 21941 D Typeface: fontPath:  02-28 19:10:16.087 21941 21941 D AndroidRuntime: Shutting down VM 02-28 19:10:16.087 21941 21941 E AndroidRuntime: FATAL EXCEPTION: main 02-28 19:10:16.087 21941 21941 E AndroidRuntime: Process: com.money.manager.ex, PID: 21941 02-28 19:10:16.087 21941 21941 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.money.manager.ex/com.money.manager.ex.assetallocation.overview.AssetAllocationOverviewActivity}: android.view.InflateException: Binary XML file line #57: Binary XML file line #57: Error inflating class android.support.v7.widget.LinearLayoutCompat

=> should that not be androidx.appcompat.widget.LinearLayoutCompat

02-28 19:10:16.087 21941 21941 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669) 02-28 19:10:16.087 21941 21941 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2730)

funrider1 avatar Feb 28 '19 18:02 funrider1

Looks like the same error caused the crash when try to edit stock transactions.

02-28 19:20:15.908 25194 25194 E Android-Iconics: Can't init: com.mikepenz.mmex_icon_font_typeface_library.MMEXIconFont 02-28 19:20:15.908 25194 25194 D AndroidRuntime: Shutting down VM 02-28 19:20:15.908 25194 25194 E AndroidRuntime: FATAL EXCEPTION: main 02-28 19:20:15.908 25194 25194 E AndroidRuntime: Process: com.money.manager.ex, PID: 25194 02-28 19:20:15.908 25194 25194 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.money.manager.ex/com.money.manager.ex.investment.PriceEditActivity}: android.view.InflateException: Binary XML file line #64: Binary XML file line #64: Error inflating class android.support.v7.widget.Toolbar

=> should that not be androidx.appcompat.widget.Toolbar

02-28 19:20:15.908 25194 25194 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669) 02-28 19:20:15.908 25194 25194 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2730) 02-28 19:20:15.908 25194 25194 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java) 02-28 19:20:15.908 25194 25194 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1481)

funrider1 avatar Feb 28 '19 18:02 funrider1

I have identified the source files, but I have no idea what I have to change to fix the problem. Sorry

funrider1 avatar Feb 28 '19 21:02 funrider1

Good work. Exactly as you say, i.e. the old value LinearLayoutCompat should be replaced by androidx.appcompat.widget.LinearLayoutCompat. This is all a result of the Support libraries migration and the Android Studio wizard that ran on the project but did not update everything correctly. I think the wizard was from Beta2 version and in the meantime the androidx support libraries were published in a release version. This unfortunately coincided with the sync changes and are causing additional app crashes. Which has also unfortunately coincided with the F-Droid move and the inability to have a separate Beta testing version, at least for the time being.

alensiljak avatar Mar 01 '19 09:03 alensiljak

@mistery does it make sense from your point of view if i review the source code for all "android.support" occurences?

funrider1 avatar Mar 01 '19 15:03 funrider1

If you have time to do that, certainly! I assume that most of the controls have been updated, since I replaced the controls in all the views for the reported exceptions. There might be only a few left in the views I have not opened. Thanks!

alensiljak avatar Mar 02 '19 23:03 alensiljak

Targets
    Occurrences of 'android.support.v7' in Project
Found Occurrences  (6 usages found)
    Production  (6 usages found)
        app  (6 usages found)
            layout  (6 usages found)
                activity_asset_allocation_overview.xml  (3 usages found)
                    activity_asset_allocation_overview.xml  (3 usages found)
                        57 <android.support.v7.widget.LinearLayoutCompat
                        80 </android.support.v7.widget.LinearLayoutCompat>
                        82 <android.support.v7.widget.Toolbar
                activity_budget_edit.xml  (1 usage found)
                    activity_budget_edit.xml  (1 usage found)
                        64 <android.support.v7.widget.Toolbar
                activity_price_edit.xml  (1 usage found)
                    activity_price_edit.xml  (1 usage found)
                        64 <android.support.v7.widget.Toolbar
                toolbar.xml  (1 usage found)
                    toolbar.xml  (1 usage found)
                        30 <!--<android.support.v7.widget.Toolbar-->

funrider1 avatar Mar 08 '19 19:03 funrider1

Need to be close since asset management is no more active in app

wolfsolver avatar Jan 05 '24 20:01 wolfsolver