-
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
Plugin not working #157
Comments
I have found that I need to, following |
In android studio I get a lot of errors: |
Ah right, there is a post install script that should run after the SF plugin us added. This requires shelljs npm package to be installed locally. Could be that this is not there? |
It is there. What cordova version is to be used? Can it be the latest one? |
Could you run:
To see what version of forcedroid and dependent packages you are using. shelljs released a new version (0.6.0) on thursday which causes forcedroid to not copy files the right way when setting up an hybrid applications. We should have a patch release out soon. |
What version of shelljs is compatible with forcedroid? |
0.5.3 works fine
|
Using 0.5.3 work partially. I had to manually run the script to update the AndroidManifest.xml:
|
After that when building the code using
I get the following error:
|
Only worked if I open the project in Android Studio |
Yup, same here (though I had the same with earlier version of shelljs). |
Now I am getting error in dexDebug because of the android method limit. Caused by the play services library. |
Cool, you can overcome this by replacing the following line in build-gradle with this; compile "com.google.android.gms:play-services:7.5.0" with compile "com.google.android.gms:play-services-gcm:7.5.0" This reduces the Google services to be pulled in. I have some notes on my progress and issues so far, but not thoroughly tested yet. |
Thanks. Got it to compile. Now I manage to login to Salesforce, but got a new error: |
Good stuff, I have seen that too... But can't remember how I git round it. Sorry not at my pc till Monday (it's Sat night where I am), but I can post up then if you don't get past this by then. Might be worth searching the issues on this repo for any errors as I did initially post a few of my notes up. |
Found it in previous issue. Finally managed to get the application working. I will do a merge request for the play service and libstlport_shared.so issue. Still don't understand why the AndroidManifest.xml file didn't get updated when the plugin is added only after running shjs manually. |
Fantastic! |
Lots of other plugins, :). cordova-plugin-console cordova-plugin-datepicker cordova-plugin-device cordova-plugin-network-information cordova-plugin-splashscreen cordova-plugin-statusbar cordova-plugin-whitelist cordova-plugin-x-toast ionic-plugin-keyboard phonegap-plugin-push |
Ah right, so I have a theory that the SF plugin currently needs to be the last to be added, otherwise things don't quite go to plan. |
There is a fetch.json file. The Salesforce plugin is the last one in the file. |
What I did. cordova platform rm android cordova plugin rm com.salesforce cordova platform add android@5.0.0 cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin.git AndroidManifest.xml wasn't updated by the post installation script. |
Tries to address all problems discussed on issue #157
This issue should be resolved in our |
Create a project using the steps in readme.
Running using:
cordova run --debug android
I get the exception:
The text was updated successfully, but these errors were encountered: