API Docs


App crash after install & launch of release build

This is most likely a proguard issue. Please check your proguardFiles configuration to make sure you use the delivered by your dependancies (also PESDK)

This is the most common way to prevent bugs! For example

android {
    buildTypes {
        release {
            useProguard true
            minifyEnabled true
            shrinkResources true
            zipAlignEnabled true
            signingConfig android.signingConfigs.release
            proguardFiles getDefaultProguardFile('proguard-android'), ''

If this is not possible for any reason, you can see our configuration here. Make sure that you update them with every version, even with bugfix versions.

# Keep Renderscript classes
-keep class** { *; }
-keep class androidx.renderscript.** { *; }

# Keep names for event class, otherwise the processor can't referance the classes.
-keepclasseswithmembers,allowshrinking class * { *; }

# Keep names for event methods, otherwise the processor can't referance the methods.
-keepclassmembers class * { <methods>; }

# Keep Annotaion, because of an issue with multiple processor rounds.
-keep class { *; }

# Keep classes instantiated by reflactions using Class.forName(classNameString).
-keep public class * extends
-keep public class * extends
-keep public class * extends

# Keep decoder classes instantiated by reflection.
-keep class** { *; }
-keepnames class** { *; }

# Keep ThreadUtils class because of some wrong proaguard optimisations.
-keep class** { *; }

# Keep annotaions accessed by reflections.
-keep class { *; }

# Keep PESDKInit, accessed over reflections.
-keep class { *; }

 # ----------------------------------------------------------------------------- #
# --- We need this roules to workaround a memory issue in the support libary. --- #
 # ----------------------------------------------------------------------------- #
-keep class {
    private$VectorDrawableCompatState mVectorState;
-keep class$VectorDrawableCompatState { mCachedBitmap;

# Keep EventDispatcher classes. We need this because of multiple processor rounds.
# Otherwise proguard may optimize it to early, results in events not firing, which can lead to strange behavior.
-keep public class *
-keepnames public class *
-keepclassmembers public class * {
    public *;

We get this build exception Error:Failed to resolve:

Unfortunately, this is a bug in gradle and java

  1. You have to trust both certificates with this command line commands
    java InstallCert
  2. Navigate in the Console to your project folder and clear the gradle cache.
    # On Mac & Linux
    ./gradlew cleanBuildCache
    # On Windows
    gradlew cleanBuildCache
  3. Do a rebuild in Android Studio (Do it twice if the first build fails)

I just use the editor, why does the app request permission to use the camera?

If this happen in v6 and above you have to remote the camera module in your gradle config

The App crashes with a “Permission Exception”

Please make sure that you delegate onRequestPermissionsResult to PermissionRequest.onRequestPermissionsResult:

public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
   PermissionRequest.onRequestPermissionsResult(requestCode, permissions, grantResults);
   super.onRequestPermissionsResult(requestCode, permissions, grantResults);

App crashed on Android 6.0

This is probably happening due to a Permission Exception as explained above.