account-kit-ane icon indicating copy to clipboard operation
account-kit-ane copied to clipboard

Class not found error

Open denmorgenshtern opened this issue 7 years ago • 3 comments

@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.

denmorgenshtern avatar Feb 21 '18 16:02 denmorgenshtern

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?

marpies avatar Feb 23 '18 12:02 marpies

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.

denmorgenshtern avatar Feb 26 '18 09:02 denmorgenshtern

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?

marpies avatar Mar 07 '18 07:03 marpies