Android Gradle excluding jar from APK -


gradle appears excluding 1 of jars have listed in dependencies of android project. projects included correctly, else except 1 jar. perhaps it's wrong jar, project builds fine.

the jar excluded built project: https://github.com/pardom/inappbillinglibrary

i used apktool (https://code.google.com/p/android-apktool/) have @ resulting apk, , none of classes jar included.

here's gradle build file

buildscript {     repositories {         mavencentral()     }     dependencies {         classpath 'com.android.tools.build:gradle:0.4.2'     } }  apply plugin: 'android'  dependencies {     compile 'com.android.support:support-v4:13.0.0'     compile filetree('libs')     compile project(':libraries:actionbarsherlock:actionbarsherlock')     compile project(':libraries:androidutils')     compile project(':libraries:androidcommon')     compile project(':libraries:chartview:library') }  android {     compilesdkversion 17     buildtoolsversion '17.0.0' } 

make sure jar not compiled java 1.7. try recompiling using java 1.5 or 1.6.

currently, android can't handle java 1.7 compiled classes.


Comments