0
我們正在嘗試Facebook的帳戶套件,讓我們的Android用戶使用其電話號碼登錄。Android上的帳戶崩潰
當用戶點擊一個按鈕,打開登陸界面,我們得到以下錯誤:
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.accountkit.R$attr" on path: DexPathList[[zip file "/data/app/XXX.XXX-2/base.apk"],nativeLibraryDirectories=[/data/app/XXX.XXX-2/lib/arm, /data/app/XXX.XXX-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
按鈕的代碼是:
final Intent intent = new Intent(activity, AccountKitActivity.class);
AccountKitConfiguration.AccountKitConfigurationBuilder configurationBuilder =
new AccountKitConfiguration.AccountKitConfigurationBuilder(
LoginType.PHONE,
AccountKit
Activity.ResponseType.CODE); // or .ResponseType.TOKEN
// ... perform additional configuration ...
intent.putExtra(
AccountKitActivity.ACCOUNT_KIT_ACTIVITY_CONFIGURATION,
configurationBuilder.build());
startActivityForResult(intent, APP_REQUEST_CODE);
AccountKit.getCurrentAccount(new AccountKitCallback<Account>() {
@Override
public void onSuccess(final Account account) {
String accountKitId = account.getId();
PhoneNumber phoneNumber = account.getPhoneNumber();
String phoneNumberString = phoneNumber.toString();
Log.e("ACCOUNT KIT : phone number",":"+phoneNumberString);
}
@Override
public void onError(final AccountKitError error) {
// Handle Error
}
});
能否請你幫忙嗎?
感謝