Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app crashing at startup on api 30 #174

Open
2 tasks done
MostafaMohamed2002 opened this issue Oct 7, 2024 · 8 comments
Open
2 tasks done

app crashing at startup on api 30 #174

MostafaMohamed2002 opened this issue Oct 7, 2024 · 8 comments
Assignees
Labels
bug Something isn't working hacktoberfest Included as a part of Hacktoberfest help wanted Extra attention is needed

Comments

@MostafaMohamed2002
Copy link
Contributor

Terms

Behavior

when trying to launch the app on api 30 it crashes at startup

                 Process: be.scri.debug, PID: 11099
                 java.lang.RuntimeException: Unable to start activity ComponentInfo{be.scri.debug/be.scri.activities.SplashActivity}: java.lang.UnsupportedOperationException: Can't convert value at index 1 to color: type=0x1
                 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)
                 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
                 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
                 	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:2066)
                 	at android.os.Handler.dispatchMessage(Handler.java:106)
                 	at android.os.Looper.loop(Looper.java:223)
                 	at android.app.ActivityThread.main(ActivityThread.java:7656)
                 	at java.lang.reflect.Method.invoke(Native Method)
                 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
                 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
                 Caused by: java.lang.UnsupportedOperationException: Can't convert value at index 1 to color: type=0x1
                 	at android.content.res.TypedArray.getColor(TypedArray.java:533)
                 	at android.app.Activity.onApplyThemeResource(Activity.java:5104)
                 	at android.view.ContextThemeWrapper.initializeTheme(ContextThemeWrapper.java:216)
                 	at android.view.ContextThemeWrapper.setTheme(ContextThemeWrapper.java:147)
                 	at android.app.Activity.setTheme(Activity.java:5082)
                 	at androidx.appcompat.app.AppCompatActivity.setTheme(AppCompatActivity.java:146)
                 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3415)
                 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601) 
                 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) 
                 	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:2066) 
                 	at android.os.Handler.dispatchMessage(Handler.java:106) 
                 	at android.os.Looper.loop(Looper.java:223) 
                 	at android.app.ActivityThread.main(ActivityThread.java:7656) 
                 	at java.lang.reflect.Method.invoke(Native Method) 
                 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 
                 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 

Device type

Pixel 9 pro api 30

Versions

latest

@MostafaMohamed2002 MostafaMohamed2002 added the bug Something isn't working label Oct 7, 2024
@andrewtavis andrewtavis added help wanted Extra attention is needed hacktoberfest Included as a part of Hacktoberfest labels Oct 7, 2024
@angrezichatterbox
Copy link
Member

One of the reasons this is happening is because the App uses features only available for API 33 and above. We would have to give else conditions for Versions other TIRAMISU in the program for such features.

@angrezichatterbox
Copy link
Member

angrezichatterbox commented Oct 10, 2024

@MostafaMohamed2002 , would you like to work on this after the current PR, or Can I try fixing the bug? :)

@MostafaMohamed2002
Copy link
Contributor Author

@MostafaMohamed2002 , would you like to work on this after the current PR, or Can I try fixing the bug? :)

I will give it a try

@andrewtavis
Copy link
Member

Let us know if any support is needed, @MostafaMohamed2002 :)

@MahmoudMabrok
Copy link
Contributor

Hello @MostafaMohamed2002 did you reach a solution and PR is ready? :)

@MostafaMohamed2002
Copy link
Contributor Author

Hello @MostafaMohamed2002 did you reach a solution and PR is ready? :)

No , if you want to contribute go on

@MahmoudMabrok
Copy link
Contributor

@angrezichatterbox I think you can start checking issue when it is possible to you.

@andrewtavis
Copy link
Member

Thanks for the discussion here, both of you! Please let us know if we can help somehow, @MahmoudMabrok :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest Included as a part of Hacktoberfest help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

4 participants