-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MainActivity cannot be cast to com.salesforce.androidsdk.phonegap.ui.SalesforceDroidGapActivity #168
Comments
Give us more information. |
Hi @wmathurin, I followed this instruction - https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/dev_hybrid_apps_run.htm I ran:
After that I open it using AndroidStudio. I added 'multiDexEnabled true' on defaultConfig:
The build didn't show any error. After I open the app on my android device I see the error above and the salesforce login page is not showing. It works fine on my iOS device. Thank you. |
I think if you were to do the cordova platform add before you do the cordova plugin add it would work. Anyway, we just released Mobile SDK 4.1 a few hours ago. Please re-open if you still have issues. |
Thanks @wmathurin. I will test using new version. |
Hi,
I got an issue with the cordova plugin. I successfully install the sample app "contacts app" of salesforce plugin using Android Studio.
After I run the app I got this error:
getAuthCredentialsError: com.salesforce.contactexplorer.MainActivity cannot be cast to com.salesforce.androidsdk.phonegap.ui.SalesforceDroidGapActivity
Anyone know about this issue?
Thank you.
The text was updated successfully, but these errors were encountered: