Приложение вылетает всякий раз, когда я пытаюсь открытьAndroid

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Приложение вылетает всякий раз, когда я пытаюсь открыть

Сообщение Anonymous »


Process: com.example.splitpay_android, PID: 22046 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.splitpay_android/com.example.splitpay_android.MainActivity}: android.view.InflateException: Binary XML file line #38 in com.example.splitpay_android:layout/activity_main: Can't convert value at index 4 to dimension: type=0x4, theme={InheritanceMap=[id=0x7f110275com.example.splitpay_android:style/Theme.Splitpayandroid, id=0x7f110078com.example.splitpay_android:style/Base.Theme.Splitpayandroid, id=0x7f110217com.example.splitpay_android:style/Theme.AppCompat.DayNight.NoActionBar, id=0x7f110223com.example.splitpay_android:style/Theme.AppCompat.Light.NoActionBar, id=0x7f11021dcom.example.splitpay_android:style/Theme.AppCompat.Light, id=0x7f110052com.example.splitpay_android:style/Base.Theme.AppCompat.Light, id=0x7f1100bacom.example.splitpay_android:style/Base.V28.Theme.AppCompat.Light, id=0x7f1100b7com.example.splitpay_android:style/Base.V26.Theme.AppCompat.Light, id=0x7f1100b1com.example.splitpay_android:style/Base.V23.Theme.AppCompat.Light, id=0x7f1100afcom.example.splitpay_android:style/Base.V22.Theme.AppCompat.Light, id=0x7f1100a4com.example.splitpay_android:style/Base.V21.Theme.AppCompat.Light, id=0x7f1100bdcom.example.splitpay_android:style/Base.V7.Theme.AppCompat.Light, id=0x7f11013bcom.example.splitpay_android:style/Platform.AppCompat.Light, id=0x7f110146com.example.splitpay_android:style/Platform.V25.AppCompat.Light, id=0x1030241android:style/Theme.Material.Light.NoActionBar, id=0x1030237android:style/Theme.Material.Light, id=0x103000candroid:style/Theme.Light, id=0x1030005android:style/Theme], Themes=[com.example.splitpay_android:style/Theme.Splitpayandroid, forced, com.example.splitpay_android:style/Theme.AppCompat.Empty, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]} at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3645) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7872) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) 2024-03-02 18:21:42.276 22046-22046 AndroidRuntime com.example.splitpay_android E Caused by: android.view.InflateException: Binary XML file line #38 in com.example.splitpay_android:layout/activity_main: Can't convert value at index 4 to dimension: type=0x4, theme={InheritanceMap=[id=0x7f110275com.example.splitpay_android:style/Theme.Splitpayandroid, id=0x7f110078com.example.splitpay_android:style/Base.Theme.Splitpayandroid, id=0x7f110217com.example.splitpay_android:style/Theme.AppCompat.DayNight.NoActionBar, id=0x7f110223com.example.splitpay_android:style/Theme.AppCompat.Light.NoActionBar, id=0x7f11021dcom.example.splitpay_android:style/Theme.AppCompat.Light, id=0x7f110052com.example.splitpay_android:style/Base.Theme.AppCompat.Light, id=0x7f1100bacom.example.splitpay_android:style/Base.V28.Theme.AppCompat.Light, id=0x7f1100b7com.example.splitpay_android:style/Base.V26.Theme.AppCompat.Light, id=0x7f1100b1com.example.splitpay_android:style/Base.V23.Theme.AppCompat.Light, id=0x7f1100afcom.example.splitpay_android:style/Base.V22.Theme.AppCompat.Light, id=0x7f1100a4com.example.splitpay_android:style/Base.V21.Theme.AppCompat.Light, id=0x7f1100bdcom.example.splitpay_android:style/Base.V7.Theme.AppCompat.Light, id=0x7f11013bcom.example.splitpay_android:style/Platform.AppCompat.Light, id=0x7f110146com.example.splitpay_android:style/Platform.V25.AppCompat.Light, id=0x1030241android:style/Theme.Material.Light.NoActionBar, id=0x1030237android:style/Theme.Material.Light, id=0x103000candroid:style/Theme.Light, id=0x1030005android:style/Theme], Themes=[com.example.splitpay_android:style/Theme.Splitpayandroid, forced, com.example.splitpay_android:style/Theme.AppCompat.Empty, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]} Caused by: java.lang.UnsupportedOperationException: Can't convert value at index 4 to dimension: type=0x4, theme={InheritanceMap=[id=0x7f110275com.example.splitpay_android:style/Theme.Splitpayandroid, id=0x7f110078com.example.splitpay_android:style/Base.Theme.Splitpayandroid, id=0x7f110217com.example.splitpay_android:style/Theme.AppCompat.DayNight.NoActionBar, id=0x7f110223com.example.splitpay_android:style/Theme.AppCompat.Light.NoActionBar, id=0x7f11021dcom.example.splitpay_android:style/Theme.AppCompat.Light, id=0x7f110052com.example.splitpay_android:style/Base.Theme.AppCompat.Light, id=0x7f1100bacom.example.splitpay_android:style/Base.V28.Theme.AppCompat.Light, id=0x7f1100b7com.example.splitpay_android:style/Base.V26.Theme.AppCompat.Light, id=0x7f1100b1com.example.splitpay_android:style/Base.V23.Theme.AppCompat.Light, id=0x7f1100afcom.example.splitpay_android:style/Base.V22.Theme.AppCompat.Light, id=0x7f1100a4com.example.splitpay_android:style/Base.V21.Theme.AppCompat.Light, id=0x7f1100bdcom.example.splitpay_android:style/Base.V7.Theme.AppCompat.Light, id=0x7f11013bcom.example.splitpay_android:style/Platform.AppCompat.Light, id=0x7f110146com.example.splitpay_android:style/Platform.V25.AppCompat.Light, id=0x1030241android:style/Theme.Material.Light.NoActionBar, id=0x1030237android:style/Theme.Material.Light, id=0x103000candroid:style/Theme.Light, id=0x1030005android:style/Theme], Themes=[com.example.splitpay_android:style/Theme.Splitpayandroid, forced, com.example.splitpay_android:style/Theme.AppCompat.Empty, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]} at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:795) at android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:8477) at android.widget.LinearLayout$LayoutParams.(LinearLayout.java:2085) at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1979) at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:89) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1129) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088) at android.view.LayoutInflater.inflate(LayoutInflater.java:686) at android.view.LayoutInflater.inflate(LayoutInflater.java:538) at android.view.LayoutInflater.inflate(LayoutInflater.java:485) 2024-03-02 18:21:42.277 22046-22046 AndroidRuntime com.example.splitpay_android E at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:775) at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:197) at com.example.splitpay_android.MainActivity.onCreate(MainActivity.kt:13) at android.app.Activity.performCreate(Activity.java:8305) at android.app.Activity.performCreate(Activity.java:8284) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1417) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3626) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3782) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2307) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7872) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) 2024-03-02 18:21:42.285 578-22067 DropBoxManagerService system_server I add tag=data_app_crash isTagEnabled=true flags=0x2


Источник: https://stackoverflow.com/questions/780 ... es-to-open
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»