Could Not Resolve Project Exception - Collaboration on Project












0















Trying to collaborate on a react native project with another user. The project successfully compiles on my machine but runs into an exception.



After pushing my project to a GitHub repo to work with another user.



He cloned the project, installed the node modules (npm install), and attempted to run react-native run-android.



He is running into the following error and we cannot seem to resolve: Could not resolve project :libs:SalesforceReact.



It appears this error may indicate that this may be a gradle problem, but reading previous gradle posts seem that the settings.gradle and build.gralde dictates the gradle version at build.



His Machine:
Windows 8.1
64bit
JDK: 1.8.0_191



My Machine:
Windows 10
64bit
JDK: 1.8.0_171



settings.gradle:



rootProject.name = 'testforce'
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
include ':tipsi-stripe'
project(':tipsi-stripe').projectDir = new File(rootProject.projectDir, '../node_modules/tipsi-stripe/android')

def libsRootDir = new File( settingsDir, '../mobile_sdk/SalesforceMobileSDK-Android/libs' )
include ':app'

include ':libs:SalesforceAnalytics'
project( ':libs:SalesforceAnalytics' ).projectDir = new File( libsRootDir, 'SalesforceAnalytics' )

include ':libs:SalesforceSDK'
project( ':libs:SalesforceSDK' ).projectDir = new File( libsRootDir, 'SalesforceSDK' )

include ':libs:SmartStore'
project( ':libs:SmartStore' ).projectDir = new File( libsRootDir, 'SmartStore' )

include ':libs:SmartSync'
project( ':libs:SmartSync' ).projectDir = new File( libsRootDir, 'SmartSync' )

include ':libs:SalesforceReact'
project( ':libs:SalesforceReact' ).projectDir = new File( libsRootDir, 'SalesforceReact' )


Build.gradle dependencies:



dependencies {
compile project(':react-native-vector-icons')
implementation project(':tipsi-stripe')
implementation project(':react-native-vector-icons')
implementation(project(':react-native-maps')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
implementation 'com.google.android.gms:play-services-base:12.0.1'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'com.android.support:appcompat-v7:23.0.0'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-analytics:16.0.3'
implementation "com.facebook.react:react-native:+"
//implementation project(path: ':libs:SalesforceReact', configuration: 'default')
api project(':libs:SalesforceReact') // From node_modules
}


enter image description here










share|improve this question





























    0















    Trying to collaborate on a react native project with another user. The project successfully compiles on my machine but runs into an exception.



    After pushing my project to a GitHub repo to work with another user.



    He cloned the project, installed the node modules (npm install), and attempted to run react-native run-android.



    He is running into the following error and we cannot seem to resolve: Could not resolve project :libs:SalesforceReact.



    It appears this error may indicate that this may be a gradle problem, but reading previous gradle posts seem that the settings.gradle and build.gralde dictates the gradle version at build.



    His Machine:
    Windows 8.1
    64bit
    JDK: 1.8.0_191



    My Machine:
    Windows 10
    64bit
    JDK: 1.8.0_171



    settings.gradle:



    rootProject.name = 'testforce'
    include ':react-native-vector-icons'
    project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
    include ':react-native-vector-icons'
    project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
    include ':react-native-maps'
    project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
    include ':tipsi-stripe'
    project(':tipsi-stripe').projectDir = new File(rootProject.projectDir, '../node_modules/tipsi-stripe/android')

    def libsRootDir = new File( settingsDir, '../mobile_sdk/SalesforceMobileSDK-Android/libs' )
    include ':app'

    include ':libs:SalesforceAnalytics'
    project( ':libs:SalesforceAnalytics' ).projectDir = new File( libsRootDir, 'SalesforceAnalytics' )

    include ':libs:SalesforceSDK'
    project( ':libs:SalesforceSDK' ).projectDir = new File( libsRootDir, 'SalesforceSDK' )

    include ':libs:SmartStore'
    project( ':libs:SmartStore' ).projectDir = new File( libsRootDir, 'SmartStore' )

    include ':libs:SmartSync'
    project( ':libs:SmartSync' ).projectDir = new File( libsRootDir, 'SmartSync' )

    include ':libs:SalesforceReact'
    project( ':libs:SalesforceReact' ).projectDir = new File( libsRootDir, 'SalesforceReact' )


    Build.gradle dependencies:



    dependencies {
    compile project(':react-native-vector-icons')
    implementation project(':tipsi-stripe')
    implementation project(':react-native-vector-icons')
    implementation(project(':react-native-maps')){
    exclude group: 'com.google.android.gms', module: 'play-services-base'
    exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }
    implementation 'com.google.android.gms:play-services-base:12.0.1'
    implementation 'com.google.android.gms:play-services-maps:15.0.1'
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation 'com.android.support:appcompat-v7:23.0.0'
    implementation 'com.google.firebase:firebase-core:16.0.3'
    implementation 'com.google.firebase:firebase-analytics:16.0.3'
    implementation "com.facebook.react:react-native:+"
    //implementation project(path: ':libs:SalesforceReact', configuration: 'default')
    api project(':libs:SalesforceReact') // From node_modules
    }


    enter image description here










    share|improve this question



























      0












      0








      0








      Trying to collaborate on a react native project with another user. The project successfully compiles on my machine but runs into an exception.



      After pushing my project to a GitHub repo to work with another user.



      He cloned the project, installed the node modules (npm install), and attempted to run react-native run-android.



      He is running into the following error and we cannot seem to resolve: Could not resolve project :libs:SalesforceReact.



      It appears this error may indicate that this may be a gradle problem, but reading previous gradle posts seem that the settings.gradle and build.gralde dictates the gradle version at build.



      His Machine:
      Windows 8.1
      64bit
      JDK: 1.8.0_191



      My Machine:
      Windows 10
      64bit
      JDK: 1.8.0_171



      settings.gradle:



      rootProject.name = 'testforce'
      include ':react-native-vector-icons'
      project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
      include ':react-native-vector-icons'
      project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
      include ':react-native-maps'
      project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
      include ':tipsi-stripe'
      project(':tipsi-stripe').projectDir = new File(rootProject.projectDir, '../node_modules/tipsi-stripe/android')

      def libsRootDir = new File( settingsDir, '../mobile_sdk/SalesforceMobileSDK-Android/libs' )
      include ':app'

      include ':libs:SalesforceAnalytics'
      project( ':libs:SalesforceAnalytics' ).projectDir = new File( libsRootDir, 'SalesforceAnalytics' )

      include ':libs:SalesforceSDK'
      project( ':libs:SalesforceSDK' ).projectDir = new File( libsRootDir, 'SalesforceSDK' )

      include ':libs:SmartStore'
      project( ':libs:SmartStore' ).projectDir = new File( libsRootDir, 'SmartStore' )

      include ':libs:SmartSync'
      project( ':libs:SmartSync' ).projectDir = new File( libsRootDir, 'SmartSync' )

      include ':libs:SalesforceReact'
      project( ':libs:SalesforceReact' ).projectDir = new File( libsRootDir, 'SalesforceReact' )


      Build.gradle dependencies:



      dependencies {
      compile project(':react-native-vector-icons')
      implementation project(':tipsi-stripe')
      implementation project(':react-native-vector-icons')
      implementation(project(':react-native-maps')){
      exclude group: 'com.google.android.gms', module: 'play-services-base'
      exclude group: 'com.google.android.gms', module: 'play-services-maps'
      }
      implementation 'com.google.android.gms:play-services-base:12.0.1'
      implementation 'com.google.android.gms:play-services-maps:15.0.1'
      implementation fileTree(dir: "libs", include: ["*.jar"])
      implementation 'com.android.support:appcompat-v7:23.0.0'
      implementation 'com.google.firebase:firebase-core:16.0.3'
      implementation 'com.google.firebase:firebase-analytics:16.0.3'
      implementation "com.facebook.react:react-native:+"
      //implementation project(path: ':libs:SalesforceReact', configuration: 'default')
      api project(':libs:SalesforceReact') // From node_modules
      }


      enter image description here










      share|improve this question
















      Trying to collaborate on a react native project with another user. The project successfully compiles on my machine but runs into an exception.



      After pushing my project to a GitHub repo to work with another user.



      He cloned the project, installed the node modules (npm install), and attempted to run react-native run-android.



      He is running into the following error and we cannot seem to resolve: Could not resolve project :libs:SalesforceReact.



      It appears this error may indicate that this may be a gradle problem, but reading previous gradle posts seem that the settings.gradle and build.gralde dictates the gradle version at build.



      His Machine:
      Windows 8.1
      64bit
      JDK: 1.8.0_191



      My Machine:
      Windows 10
      64bit
      JDK: 1.8.0_171



      settings.gradle:



      rootProject.name = 'testforce'
      include ':react-native-vector-icons'
      project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
      include ':react-native-vector-icons'
      project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
      include ':react-native-maps'
      project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
      include ':tipsi-stripe'
      project(':tipsi-stripe').projectDir = new File(rootProject.projectDir, '../node_modules/tipsi-stripe/android')

      def libsRootDir = new File( settingsDir, '../mobile_sdk/SalesforceMobileSDK-Android/libs' )
      include ':app'

      include ':libs:SalesforceAnalytics'
      project( ':libs:SalesforceAnalytics' ).projectDir = new File( libsRootDir, 'SalesforceAnalytics' )

      include ':libs:SalesforceSDK'
      project( ':libs:SalesforceSDK' ).projectDir = new File( libsRootDir, 'SalesforceSDK' )

      include ':libs:SmartStore'
      project( ':libs:SmartStore' ).projectDir = new File( libsRootDir, 'SmartStore' )

      include ':libs:SmartSync'
      project( ':libs:SmartSync' ).projectDir = new File( libsRootDir, 'SmartSync' )

      include ':libs:SalesforceReact'
      project( ':libs:SalesforceReact' ).projectDir = new File( libsRootDir, 'SalesforceReact' )


      Build.gradle dependencies:



      dependencies {
      compile project(':react-native-vector-icons')
      implementation project(':tipsi-stripe')
      implementation project(':react-native-vector-icons')
      implementation(project(':react-native-maps')){
      exclude group: 'com.google.android.gms', module: 'play-services-base'
      exclude group: 'com.google.android.gms', module: 'play-services-maps'
      }
      implementation 'com.google.android.gms:play-services-base:12.0.1'
      implementation 'com.google.android.gms:play-services-maps:15.0.1'
      implementation fileTree(dir: "libs", include: ["*.jar"])
      implementation 'com.android.support:appcompat-v7:23.0.0'
      implementation 'com.google.firebase:firebase-core:16.0.3'
      implementation 'com.google.firebase:firebase-analytics:16.0.3'
      implementation "com.facebook.react:react-native:+"
      //implementation project(path: ':libs:SalesforceReact', configuration: 'default')
      api project(':libs:SalesforceReact') // From node_modules
      }


      enter image description here







      android git react-native gradle react-native-android






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 14 '18 at 4:28







      S.B.

















      asked Nov 14 '18 at 3:59









      S.B.S.B.

      1408




      1408
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53293011%2fcould-not-resolve-project-exception-collaboration-on-project%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53293011%2fcould-not-resolve-project-exception-collaboration-on-project%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Xamarin.form Move up view when keyboard appear

          JBPM : POST request for execute process go wrong