Skip to content

[Bug] Crash at start #91

Description

@opk12

Bug Report

Version 2.1.0 from F-droid crashes at start on Samsung Android 7.1. Versions 1.7.5 and 1.8.0, also from F-droid, did not crash.

Description

FATAL EXCEPTION: main
Process: com.hifnawy.caffeinate, PID: 30322
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/app/PictureInPictureParams$Builder;
	at L.c.g(SourceFile:1)
	at com.hifnawy.caffeinate.view.MainActivity.F(SourceFile:7)
	at com.hifnawy.caffeinate.view.MainActivity.onCreate(SourceFile:176)
	at android.app.Activity.performCreate(Activity.java:6977)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2946)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3064)
	at android.app.ActivityThread.-wrap14(ActivityThread.java)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1659)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:154)
	at android.app.ActivityThread.main(ActivityThread.java:6816)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.app.PictureInPictureParams$Builder" on path: DexPathList[[zip file "/data/app/com.hifnawy.caffeinate-1/base.apk"],nativeLibraryDirectories=[/data/app/com.hifnawy.caffeinate-1/lib/arm, /system/lib, /vendor/lib]]
	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
	... 15 more
FATAL EXCEPTION: main

Steps to Reproduce

Launch the app.

Expected Behavior

Describe what you expected to happen when following the steps above.

Actual Behavior

Describe what actually happened. Include any error messages, logs, or screenshots if possible.

Screenshots or Videos

If applicable, add screenshots or a video to help illustrate the problem.

Environment Details

Provide details about the environment where this issue occurred.

  • App Version: (e.g., 1.2.0)
  • Android Version: (e.g., Android 11)
  • Device Model: (e.g., Pixel 5, Samsung Galaxy S21)
  • Rooted or Non-Rooted: (e.g., Non-Rooted)
  • Screen Orientation: (e.g., Portrait, Landscape)

Log Output

If available, include any relevant log output. Use adb logcat to capture logs, if possible.
Or use LogFox to capture logs from the device.

Paste logs here

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions