⚙️ Troubleshooting
Screenshot gesture
It can happen, that the gleap widget is opened, when data is stored to the device. The reason for this issue is the absence of the READ_EXTERNAL_STORAGE or READ_MEDIA_IMAGES permission, which is necessary for the gleap widget to detect whether the data being stored is a screenshot or other media. The requested permission depends on the running Android Version.
To resolve this issue, it is necessary to grant the READ_EXTERNAL_STORAGE or READ_MEDIA_IMAGES permission depending of the Android Version.
Bintray issue
The bintray service was sunset on May 2022. Due to this, we migrated our SDK to the mvnrepository. If you run into the following build issue, you must remove the bintray repository.
Issue:
> Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not determine artifacts for io.gleap:gleap-android-sdk:8.2.2
> Could not get resource 'https://jcenter.bintray.com/io/gleap/gleap-android-sdk/8.2.2/gleap-android-sdk-8.2.2.aar'.
> Could not HEAD 'https://jcenter.bintray.com/io/gleap/gleap-android-sdk/8.2.2/gleap-android-sdk-8.2.2.aar'.
> Read timed out
Solution:
Navigate to android/.idea/jarRepositories.xml and remove the bintray reference, to make sure the gleap SDK gets downloaded from the mvnrepository.
API level 30
Google Play will soon require that apps target API level 31 or higher. This will be required for new apps in August 2022, and for updates to existing apps in November 2022.
If your project depends on API level 30 please add the following to you build.gradle:
implementation( "androidx.appcompat:appcompat:1.3.0") {
force = true
}
implementation( "com.google.android.material:material:1.4.0") {
force = true
}
Old version of core:ktx
If you are using a older version of core:ktx please add the following:
implementation( "androidx.core:core-ktx:{your version}") {
force = true
}