Comments (9)
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.
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.
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.
I'm not using proguard this is the default configuration, proguard is disabled by minifyEnabled false
from engage-digital-messaging-android.
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.
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.
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.
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.
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)
- With Android P on Pixel 2 and Pixel 3, Dimelo initialization fails and the app crahes HOT 3
- Incident étrange HOT 1
- Unread show
- How to display the time when the notification was received HOT 11
- Hello, I want to know how to customize the notification display. HOT 1
- Crash caused by a conflict with the Picasso lib HOT 5
- dimelo.setWelcomeMessage() could not receive a welcome message HOT 4
- IndexOutOfBoundsException from ChatActivity HOT 6
- Crash when clicking on camera HOT 6
- React Native Wrapper HOT 2
- Localization HOT 7
- Last release breaks build of previous versions HOT 1
- Push Notification icon HOT 1
- compileSdkVersion 31 build fail HOT 1
- Deprecated API HOT 1
- Could not send the message HOT 4
- Crash HOT 13
- Chat$24.run
- Close button not working in camera page HOT 9
- NullPointerException StartAndValidateAttachmentProvider Bitmap.isRecycled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from engage-digital-messaging-android.