Backendless.initapp Crashes

My app crashes on Backendless.initapp on this line:

Backendless.initApp(this, “8B896105-6244-894C-FF80-9C8045E66600”, “D07AC071-C614-2A0D-FF05-E36C6C98B700”);

I am using instantApp features and my features Gradle Module looks like so:

apply plugin: ‘com.android.feature’

android {
compileSdkVersion 27
defaultConfig {
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName “1.0”
testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner”
}
buildTypes {
release {
minifyEnabled false
}
}

lintOptions {
    disable 'InvalidPackage', 'RtlCompat'
    abortOnError false
}

defaultConfig {
    multiDexEnabled true
}

dexOptions {
    javaMaxHeapSize "3g" //specify the heap size for the dex process
}

}

dependencies {
implementation fileTree(include: [’*.jar’], dir: ‘libs’)
implementation group: ‘com.backendless’, name: ‘backendless’, version: ‘5.0.0’

// required for real-time database and real-time messaging
implementation ('io.socket:socket.io-client:1.0.0') {
    // excluding org.json which is provided by Android
    exclude group: 'org.json', module: 'json'
}
    implementation project(':base')
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

}I can confirm that I do have the Backendless SDK installed. I am suspecting that it could be a targeting version issue as the sample targets SDK version 26.

Hi Mabuya,

What version of Backendless SDK do you have installed?

Regards,
Mark

Hi Mark

Version 5.0.0.

I added it in gradle and successfully synced. I then successfully built the project. However, when I try and initialize it crashes as above.

This is the line where I added Backendless 5.0.0 in gradle.

implementation group: ‘com.backendless’, name: ‘backendless’, version: ‘5.0.0’

I ran App without Instant Run and it no longer crashes at Backendless.initApp.