For this error, just so simple. Make sure your activity is inheriting from FragmentActivity instead of Activity. Follow this thread: thread at stack overflow CommonsWare has give the clue. If your activity is inheriting Activity, the <fragment> tag which you use at the layout will not work. So, make sure You inheriting to FragmentActivity.
Rabu, 09 Juli 2014
Important notes about FB app development API 3 Android Development
The Facebook SDK uses Facebook's native app to provide support for authentication when it's present. On a real device, you can test this by simply installing this app for free from Google Play. However, it's not possible to access Google Play on an emulator. If you want to test the flow there, we include a copy in the SDK that you can install.
Unable to execute dex: Multiple dex files define
Unable to execute dex: Multiple dex files define Lyour_package
Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define
This case usually happened when You import same library twice. Delete ones, and everything will be ok.
Then, if You have libary, have class for example com.sample.MyClass.java
Then, at Your Project there is a class too at com.sample.MyClass.java. Then, this usually make crash.
So, rename your class or your package if this happened to You.
Android R cannot be resolved or is not a field
It is just so simple. People maybe prefer using auto import feature at eclipse using shortcut key Command+shift+O or Ctrl+shift+O at windows. Check Your import. Make sure You import :
import your.package.name.R;
instead of
import android.R;
Please import R file of your project.
Langganan:
Komentar (Atom)