How to reference a external lib/jar in Android project -


i have same problem - how reference external jar in android library project in intellij v10

...but solution not work me. keep getting error

 e/androidruntime: fatal exception: main         java.lang.noclassdeffounderror: com.loopj.android.http.requestparams 

i using new android studio (based on intellij) , these settings - http://cl.ly/image/0t0q26423w3r

i found partial solution in thread, figured i'd share here also.

make sure modify build.gradle (located in src folder) this:

buildscript {     repositories {         maven { url 'http://repo1.maven.org/maven2' }     }     dependencies {         classpath 'com.android.tools.build:gradle:0.4'     } } apply plugin: 'android'  dependencies {     compile files('libs/android-support-v4.jar')     /****************************         additional libraries here      ****************************/ }  android {     compilesdkversion 17     buildtoolsversion "17.0.0"      defaultconfig {         minsdkversion 5         targetsdkversion 16     } } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -