Git Product home page Git Product logo

Comments (9)

elhu avatar elhu commented on September 7, 2024

Hi,

Have you tried forcing a full-refresh of your Gradle dependencies by running

./gradlew clean && ./gradlew --refresh-dependencies

from within your app directory? It might sort out this kind of issues.

If this does not help, I'm going to need more info, starting with the Android version running on the device.

Let me know if this helped!

from engage-digital-messaging-android.

maresc-g avatar maresc-g commented on September 7, 2024

It didn't work. I tried on several devices, a Motorola moto g on 6.0, a LG Nexus 5 on 4.4.4 and a Samsung Galaxy S3 on 4.3

Here is my build.gradle :

apply plugin: 'com.android.library'
apply plugin: 'io.fabric'

buildscript {
    repositories {
        mavenCentral()
        maven { url 'https://maven.fabric.io/public' }
        maven { url 'https://raw.github.com/dimelo/Dimelo-Android/master' }
    }
    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}

repositories {
    mavenCentral()
    maven { url 'https://maven.fabric.io/public' }
    maven { url 'https://raw.github.com/dimelo/Dimelo-Android/master' }
}

android {
    compileSdkVersion 23
    buildToolsVersion '23.0.2'
    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        minSdkVersion 15
        targetSdkVersion 21
        multiDexEnabled true
        renderscriptTargetApi 23
        renderscriptSupportModeEnabled true
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug{
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    lintOptions {
        disable 'InvalidPackage'
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    compile 'com.dimelo.dimelosdk:dimelosdk:1.1.1'
    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.google.android.gms:play-services-maps:8.1.0'
    compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
        transitive = true;
    }
    compile 'com.google.code.gson:gson:2.2.4'
}

from engage-digital-messaging-android.

elhu avatar elhu commented on September 7, 2024

Thank you for those details.

I see that you are using proguard. Could you try adding the following to your proguard configuration file, and let me know if it solves your problem?

-keep class com.dimelo.** { *; }
-keep interface com.dimelo.** { *; }

from engage-digital-messaging-android.

maresc-g avatar maresc-g commented on September 7, 2024

I'm not using proguard this is the default configuration, proguard is disabled by minifyEnabled false

from engage-digital-messaging-android.

elhu avatar elhu commented on September 7, 2024

Indeed, I spoke too quickly.

The problem might come from a configuration issue with multidex.
Is Multidex configured in your Manifest file, as explained in http://developer.android.com/tools/building/multidex.html#mdex-gradle ?

If you've already subclassed Application, you might want to have a look at http://stackoverflow.com/questions/26609734/how-to-enable-multidexing-with-the-new-android-multidex-support-library.

from engage-digital-messaging-android.

maresc-g avatar maresc-g commented on September 7, 2024

It wasn't configured in the AndroidManifest but adding it doesn't change anything.
I also tried to upgrade the dimelo sample app (https://github.com/dimelo/Dimelo-Android-SampleApp) to use the 1.1 SDK version but I get a compile error :

Error:duplicate files during packaging of APK C:\datas\marescauxg\AndroidStudioProjects\Dimelo-Android-SampleApp-master\Dimelo-Android-SampleApp-master\app\build\outputs\apk\app-debug-unaligned.apk
    Path in archive: lib/armeabi-v7a/librsjni.so
    Origin 1: C:\datas\marescauxg\android-sdk-windows\build-tools\23.0.1\renderscript\lib\packaged\armeabi-v7a\librsjni.so
    Origin 2: C:\datas\marescauxg\AndroidStudioProjects\Dimelo-Android-SampleApp-master\Dimelo-Android-SampleApp-master\app\build\intermediates\exploded-aar\com.dimelo.dimelosdk\dimelosdk\1.1.0\jni\armeabi-v7a\librsjni.so
You can ignore those files in your build.gradle:
    android {
      packagingOptions {
        exclude 'lib/armeabi-v7a/librsjni.so'
      }
    }
Error:Execution failed for task ':app:packageDebug'.
> Duplicate files copied in APK lib/armeabi-v7a/librsjni.so
    File 1: C:\datas\marescauxg\android-sdk-windows\build-tools\23.0.1\renderscript\lib\packaged\armeabi-v7a\librsjni.so
    File 2: C:\datas\marescauxg\AndroidStudioProjects\Dimelo-Android-SampleApp-master\Dimelo-Android-SampleApp-master\app\build\intermediates\exploded-aar\com.dimelo.dimelosdk\dimelosdk\1.1.0\jni\armeabi-v7a\librsjni.so

from engage-digital-messaging-android.

elhu avatar elhu commented on September 7, 2024

I have updated the sample app to use SDK 1.1.1.
Could you try pulling the new code, and see if you manage to build it?

from engage-digital-messaging-android.

maresc-g avatar maresc-g commented on September 7, 2024

It works ! I managed to build and launch the sample app so I compared every file you modified with your commit.
I saw that in TabStart you use openChatActivity() instead of a fragment so I tried that and I applied a them to ChatActivity.
I got an error because I didn't use a compatible theme so I changed it and it worked.
So I just applied the theme to the whole application and it worked.

Thank you for your help !

from engage-digital-messaging-android.

elhu avatar elhu commented on September 7, 2024

Perfect, I'm glad this is working, and I hope the rest of the SDK integration goes smoothly for you!

from engage-digital-messaging-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.