abdalmoniem / abdalmoniem/Caffeinate

[Bug] Crash at start

Đang mở
#91 1 bình luận 0 reaction 1 người được giao Được @abdalmoniem nhận Xem trên GitHub
bug
Ngôn ngữ chính
Kotlin
Star
131
Fork
7
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Bug Report
Version 2.1.0 [from F-droid](https://f-droid.org/en/packages/com.hifnawy.caffeinate/) 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](https://apt.izzysoft.de/fdroid/index/apk/com.f0x1d.logfox) to capture logs from the device.

```plaintext
Paste logs here
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.