androidhttpclient - Android Http client library issue -


i using following http client library - https://github.com/kevinsawicki/http-request

...and when use inside app, following runtime error. app compiles alright.

w/dalvikvm: vfy: unable resolve static method 4110: lcom/github/kevinsawicki/http/httprequest;.get(ljava/lang/charsequence;)lcom/github/kevinsawicki/http/httprequest;

this github issue opened - https://github.com/kevinsawicki/http-request/issues/34

it sounds library not being packaged apk.

read section on setting library using library in project. http://developer.android.com/tools/projects/projects-eclipse.html#settinguplibraryproject

short story library needs have "is library" option enabled in android tab of project properties. consuming project needs have library added list of libraries on project properties android tab.


just getting started android studio, myself, i'm not sure there. when have question on whether in apk here's do:

  1. generate apk. know eclipse puts in bin/ directory, not sure puts it.
  2. extract using unzip (7zip or unzip on linux fine, unzip programs require rename .apk .zip)
  3. if library contains non-java files, you'll see them in apk.
  4. if library java code, you'll need pull dex file apart dex2jar. http://code.google.com/p/dex2jar/downloads/list

    [nedwidek@yule bin]$ d2j-dex2jar.sh classes.dex dex2jar classes.dex -> classes-dex2jar.jar [nedwidek@yule bin]$ unzip -l classes-dex2jar.jar

  5. doing shows apk particular project indeed contain of class files actionbarsherlock.


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 -