android - java.lang.noClassDefFoundError: Failed resolution of: Lcom/facebook/R$style; -


i try add facebook sdk delphi android project. add libraries file facebook-android-sdk.jar, when run app , try launch exemple :

package com.wrapper.facebook;  import com.facebook.share.widget.appinvitedialog;  public class facebookappinvite {    public static boolean canshow() {       return appinvitedialog.canshow();   }  } 

when call delphi canshow receive error: java.lang.noclassdeffounderror: failed resolution of: lcom/facebook/r$style;

what did miss ? find , how add r$style ?

android development tools generate [your package].r.java android project resources when compile project.

and resources parts of inner class of r class.

i think know well.

after looking question, lcom/facebook/r$style may r class generate facebook sdk resource.

but have no experience of using facebook sdk, have sugestion you:

1.decompile facebook-android-sdk.jar. make sure there no r class in it.

2.read facebook sdk tutorial again.try find out stup have miss.

3.what kind of ide use? may project output apk not include facebook sdk, because ide compile script not output sdk codes.so check out.

4.do have more runtime log?


Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -