• kanav khurana 6
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
I am doing the challende for this - got as far as running forcedroid create in GITShell. All seems to go well until it hangs as shown at the end of the Powershell output below - I never get the chance to enter the Callback URL and Consumer Key values. Have no idea how to fix this - it is not finishing the copy of the project ftom the tmp directory, so the www/bootconfig.json file doesn't exist....

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
 
~\Documents\GitHub> forcedroid create
Enter your application type (native, react_native, hybrid_local, hybrid_remote): hybrid_remote
Enter your application name:
Invalid value for application name: ''.
Enter your application name: TrailheadHybridTest
Enter the package name for your app (com.mycompany.myapp): com.trailhead.hybrid
Enter your organization name (Acme, Inc.): Trailhead, Inc.
Enter the start page for your app: HybridPage
Enter output directory for your app (leave empty for the current directory): TrailHybridApps
Invalid value for output directory (directory must not already exist): 'TrailHybridApps'.
Enter output directory for your app (leave empty for the current directory): TrailHybridApps
 
********************************************************************************
*
*   Creating android hybrid_remote application using Salesforce Mobile SDK
*     with app name:        TrailheadHybridTest
*          package name:    com.trailhead.hybrid
*          organization:    Trailhead, Inc.
*
*     in:                   TrailHybridApps
*
*     from template repo:   https://github.com/forcedotcom/SalesforceMobileSDK-Templates#v5.1.0
*          template path:   HybridRemoteTemplate
*          start page:      HybridPage
*          plugin repo:     https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin#v5.1.0
*
********************************************************************************
 
Creating a new cordova project.
C:\Users\Keith\Documents\GitHub\TrailHybridApps C:\Users\Keith\Documents\GitHub
com.trailhead.hybrid@1.0.0 C:\Users\Keith\Documents\GitHub\TrailHybridApps
`-- shelljs@0.7.0
  +-- glob@7.1.2
  | +-- fs.realpath@1.0.0
  | +-- inflight@1.0.6
  | | `-- wrappy@1.0.2
  | +-- inherits@2.0.3
  | +-- minimatch@3.0.4
  | | `-- brace-expansion@1.1.7
  | |   +-- balanced-match@0.4.2
  | |   `-- concat-map@0.0.1
  | +-- once@1.4.0
  | `-- path-is-absolute@1.0.1
  +-- interpret@1.0.3
  `-- rechoir@0.6.2
    `-- resolve@1.3.3
      `-- path-parse@1.0.5
 
C:\Users\Keith\Documents\GitHub
C:\Users\Keith\Documents\GitHub\TrailHybridApps C:\Users\Keith\Documents\GitHub
Using cordova-fetch for cordova-android@6.1.2
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: com.trailhead.hybrid
        Name: TrailheadHybridTest
        Activity: MainActivity
        Android target: android-25
Subproject Path: CordovaLib
Android project created with cordova-android@6.1.2
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for android
 
               This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
 
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving android@~6.1.2 into config.xml file ...
C:\Users\Keith\Documents\GitHub
C:\Users\Keith\Documents\GitHub\TrailHybridApps C:\Users\Keith\Documents\GitHub

 
Hi Experts,
I am creating Hybrid mobile app following "https://trailhead.salesforce.com/en/mobile_sdk_intro/mobile_sdk_hybrid/mobilesdk_hybrid_sample_app". but i am not getting salesforce login screen. that is below


User-added image

my app directly move to "Hybrid REST Ext" below  page, that buttons in not
not working.


User-added image

and my command prompt send error that is below:-
Command:-
"cordova plugin add https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin"

Error:-
Failed to install 'com.salesforce':Error: There was a conflict trying to modify attributes with <edit-config> in plugin com.salesforce. The conflicting plugin, undefined, already modified the same attributes. The conflict must be resolved before com.salesforce can be added. You may use --force to add the plugin and overwrite the conflicting attributes.
    at PlatformMunger.add_plugin_changes (/Users/Rishipailwal/contactsApp/platforms/android/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:169:19)
    at /Users/Rishipailwal/contactsApp/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:126:25
    at _fulfilled (/Users/Rishipailwal/contactsApp/platforms/android/cordova/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/Users/Rishipailwal/contactsApp/platforms/android/cordova/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/Users/Rishipailwal/contactsApp/platforms/android/cordova/node_modules/q/q.js:796:13)
    at /Users/Rishipailwal/contactsApp/platforms/android/cordova/node_modules/q/q.js:857:14
    at runSingle (/Users/Rishipailwal/contactsApp/platforms/android/cordova/node_modules/q/q.js:137:13)
    at flush (/Users/Rishipailwal/contactsApp/platforms/android/cordova/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
Error: There was a conflict trying to modify attributes with <edit-config> in plugin com.salesforce. The conflicting plugin, undefined, already modified the same attributes. The conflict must be resolved before com.salesforce can be added. You may use --force to add the plugin and overwrite the conflicting attributes.

Please suggest. what i am doing wrong.

Thanks
Mukesh