Problems to install backendless.jar lib

Helow,

I’m a Parse user and i try to install the backendless.jar lib.

This is the grade error generated by Android Studio for my app:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:dexDebug’.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java’’ finished with non-zero exit value 2

What can i do for to start the changes for my app and run with backendless?

Thanks,

Hi Joan,

How do you install backendless jar? Try using maven, make sure to get version 3.0.8

Regards,
Mark

The error code shows no relations to the backendless.jar

I’m using jdk1.8.0_65.
Maybe you should consider updating your jdk?

I’d also suggest to clean and rebuild your project.
Gradle is a bit buggy sometimes…

The same error with jdk1.8.0_72 + clean + rebuilt …

""Error:Execution failed for task ‘:app:dexDebug’.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/bin/java’’ finished with non-zero exit value 2""

it seams a incompatibility between backendless.jar and ‘com.google.android.gms:play-services:8.3.0’ …

Can you share more details on all the dependencies you included into your project?

Please try to not use the complete gms play services package.

Instead try using just the packages you need (I have the following 2 in my gradle file, it works fine):

compile ‘com.google.android.gms:play-services-location:8.4.0’
compile ‘com.google.android.gms:play-services-maps:8.4.0’

okkkkk !!

my built.gradle file:
apply plugin: ‘com.android.application’

android {
compileSdkVersion 23
buildToolsVersion “23.0.1”

defaultConfig {
    applicationId "apps.jmm.cat.sharemyneeds"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies {
compile files(‘libs/backendless.jar’)
compile files(‘libs/activation.jar’)
compile files(‘libs/additionnal.jar’)
compile files(‘libs/mail.jar’) compile ‘com.android.support:appcompat-v7:23.1.1’ compile ‘com.android.support:design:23.1.1’
compile ‘com.google.android.gms:play-services-ads:8.3.0’
compile ‘com.google.android.gms:play-services:8.3.0’
compile ‘com.android.support:support-v4:23.1.1’
compile project(’:TecladoEmoji’)
}
And my settings.gradle file:include ‘:app’
include ‘:TecladoEmoji’

You can make a small project with the two sentencies: compile files(‘libs/backendless.jar’) compile 'com.google.android.gms:play-services:8.3.0’and obtain the problem.Thanks,

A thousand of thanks, Mark !!!

I solved the problem amb this change:

compile ‘com.google.android.gms:play-services:8.3.0’

by

compile ‘com.google.android.gms:play-services-location:8.4.0’
compile ‘com.google.android.gms:play-services-maps:8.4.0’
compile ‘com.google.android.gms:play-services-appindexing:8.4.0’

Congratulations,

Hi Joan,

Credit goes to Jens, it was his suggestion :wink:

I am glad you got it working!

Regards,
Mark