Skip to content Skip to sidebar Skip to footer

App Is Working On Android 7 And 8 But Not Working On Android 5 And 6

App working fine on android 8 virtual device but it crashes and force closes on android 6.0.1 hardware device. MinSDK version of the app is API21 android 5. everything is working f

Solution 1:

The real error is this one:

Resource "com.example.tanishqshastri_mppolice.jansunwai:drawable/roundstatus" (7f070082) is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f070082 a=-1 r=0x7f070082}

Something in the definition of this drawable object is not compatible with Android 6, I can't help you more than that without more details about that drawable resource

If your app is working fine in android 8 emulator you can't assume that it will be working fine on every previous version of android! If you use an android 6 emulator image the app will crash exactly as with real device

Solution 2:

if Instant Run is activated this causes some classes to be moved. try to disable Instant Run Go to toolbar and

File -> Settings -> Build,Execution,Deployment ->Instant Run -> uncheck "Enable instant run"

Solution 3:

I renamed the drawable-v24 to drawable-xxhpi and it my app is working on Android 6.

Post a Comment for "App Is Working On Android 7 And 8 But Not Working On Android 5 And 6"