I am going crazy with my Android Studio IDE.
I am willing to add the Maven library simple-xml from Central (v2.7.1)
The project compiles well
Gradle has the lib dependency in its
build.gradle
:dependencies { compile 'com.android.support:appcompat-v7:18.0.0' compile 'org.simpleframework:simple-xml:2.7.1' }
Export is checked in Android Studio's Module Settings for the simple-xml lib:
Screenshot here: https://s6.postimg.cc/xxgj56zkx/Module_Settings.png
And I got the Class not found when I run my app ...
java.lang.NoClassDefFoundError: org.simpleframework.xml.core.Persister
I am lost, It sounds like Gradle doesn't pack the lib and dependencies in the apk for some reasons ...
Edit1: my Android Studio version is 0.2.13 (latest), Gradle 0.5.+
Edit2: full build.gradle I use
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 18
}
}
dependencies {
compile 'com.android.support:appcompat-v7:18.0.0'
compile 'org.simpleframework:simple-xml:2.7.1'
}