account-kit-ane
account-kit-ane copied to clipboard
Class not found error
@marpies hello! I have an error on Android while logging:
AccountKit.login(akConfig, akLoginResultHandler);
Where akConfig is:
akConfig = {com.marpies.ane.facebook.accountkit::AKConfiguration}
mDefaultCountryCode = "RU"
mEnableFacebookNotification = true
mEnableReadPhoneState = true
mInitialAuthState = "random-nonce"
mInitialEmail = null
mInitialPhoneNumber = null
mLoginType = "phone"
mPhoneNumberCountryCode = null
mReceiveSms = true
mSmsBlackList = null
mSmsWhiteList = null
mTitleType = "appName"
defaultCountryCode = "RU"
enableFacebookNotification = true
enableReadPhoneState = true
initialAuthState = "random-nonce"
initialEmail = null
initialPhoneNumber = null
initialPhoneNumberCountryCode = null
loginType = "phone" (same with "email")
receiveSms = true
smsBlackList = null
smsWhiteList = null
titleType = "appName"
Logcat log: https://www.pastiebin.com/5a8d990d51afd
Strings.xml:
<resources>
<string name="FACEBOOK_APP_ID">1652240808333129</string>
<string name="ACCOUNT_KIT_CLIENT_TOKEN">3e3698e0719786c2196027b1fd6baeb1</string>
<string name="ak_login_protocol_scheme">ak1652240808333129</string>
</resources>
Tested on Android 6.0.1. Build with Air 28, Flex 4.16.1, Java 1.8, Gradle 2.14.1 App not crashes, continues to work. I'd like to ask you some help with this issue.
Hi @denmorgenshtern,
That's strange, it looks like maybe the ANE hasn't been built properly. Could you try and see if you get the same error when using the ANE from this repo?
Yes, error exactly the same with default ane from repo . Could it be the Android version or samsung device problem? I found out there is no error on Android 4.4, but on samsung Android 6.1.
Hmm, not sure what's happening. I tested it on Nexus 7 with Android 6.0.1 and Samsung Galaxy Tab A 10.1 with Android 7.0 but both work fine. Could you try to create a clean project with just the Account Kit ANE and see if the error occurs?