Cosmic-Ide / rewrite

WIP Cosmic IDE rewrite
35 stars 6 forks source link

Crash: Inflate exeption binary xml file Line: 24 #62

Closed scto closed 1 year ago

scto commented 1 year ago

Build version: 1.0-e0b3ad1 
Build date: 1981-01-01 01:01:02 
Current date: 2023-07-23 17:29:25 
Device: Google Pixel 3 XL 

Stack trace:  
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.cosmicide.rewrite/org.cosmicide.rewrite.MainActivity}: android.view.InflateException: Binary XML file line #24 in android:layout/screen_simple: Binary XML file line #24 in android:layout/screen_simple: Error inflating class LinearLayout
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3639)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3796)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
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:2214)
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:7842)
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:1003)
Caused by: android.view.InflateException: Binary XML file line #24 in android:layout/screen_simple: Binary XML file line #24 in android:layout/screen_simple: Error inflating class LinearLayout
Caused by: android.view.InflateException: Binary XML file line #24 in android:layout/screen_simple: Error inflating class LinearLayout
Caused by: java.lang.NumberFormatException: For input string: "default"
at java.lang.Integer.parseInt(Integer.java:747)
at java.lang.Integer.parseInt(Integer.java:865)
at org.cosmicide.rewrite.MainActivity.onCreateView(MainActivity.kt:38)
at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1073)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1001)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:965)
at android.view.LayoutInflater.inflate(LayoutInflater.java:663)
at android.view.LayoutInflater.inflate(LayoutInflater.java:538)
at android.view.LayoutInflater.inflate(LayoutInflater.java:485)
at com.android.internal.policy.DecorView.onResourcesLoaded(DecorView.java:2202)
at com.android.internal.policy.PhoneWindow.generateLayout(PhoneWindow.java:2664)
at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:2727)
at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2135)
at androidx.core.splashscreen.SplashScreen$Impl31.install(SplashScreen.kt:428)
at androidx.core.splashscreen.SplashScreen.install(SplashScreen.kt:189)
at androidx.core.splashscreen.SplashScreen.access$install(SplashScreen.kt:121)
at androidx.core.splashscreen.SplashScreen$Companion.installSplashScreen(SplashScreen.kt:146)
at org.cosmicide.rewrite.MainActivity.onCreate(MainActivity.kt:44)
at android.app.Activity.performCreate(Activity.java:8051)
at android.app.Activity.performCreate(Activity.java:8031)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3612)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3796)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
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:2214)
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:7842)
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:1003)

User actions: 
2023-07-23 17:28:54: MainActivity created