Recently I implemented License Verfication Library to my app using this answer and updated my app with it. However, I had to unpublish it because it started to crash on Android 9 and 10 devices when internet is on. If internet is off, the app doesn't crash but is Not Licensed
as I removed abort()
method from the code. However, the app is licensed and works well on Android 6 device. I suspect that this is because I added deprecated library:
android {
useLibrary 'org.apache.http.legacy'
}
to library's gradle file. From Jinu's answer here I understand that Android 6 is the last version I can use this library with. The error I'm getting if I don't add this library:
error: package org.apache.http does not exist
Does anybody know how can I make License Verification to work with later Android versions?