yarikpwnzer / react-native-survey-monkey

React Native lib for Survey Monkey
22 stars 17 forks source link

Unable to run Android app with package #35

Open gdknab opened 2 years ago

gdknab commented 2 years ago

We're having trouble running the package on Android on React Native version 0.66.4. It works well however on iOS.

Any suggestions would be greatly appreciated.

Thank you for your development efforts and in advance for your help.

* What went wrong:
Execution failed for task ':app:mergeDevDebugAssets'.
> Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
   > Could not find com.surveymonkey:surveymonkey-android-sdk:2.0.0.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
       - file:/Users/anilghodake/.m2/repository/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
       - file:/Users/anilghodake/Documents/pangea-health-app/node_modules/react-native/android/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
       - file:/Users/anilghodake/Documents/pangea-health-app/node_modules/jsc-android/dist/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
       - https://dl.google.com/dl/android/maven2/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
       - https://www.jitpack.io/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
     Required by:
         project :app > project :react-native-survey-monkey
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
yernandus commented 1 year ago

add this to your android/build.gradle file at the bottom allprojects { repositories { jcenter() } }

yernandus commented 1 year ago

We're having trouble running the package on Android on React Native version 0.66.4. It works well however on iOS.

Any suggestions would be greatly appreciated.

Thank you for your development efforts and in advance for your help.

* What went wrong:
Execution failed for task ':app:mergeDevDebugAssets'.
> Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
   > Could not find com.surveymonkey:surveymonkey-android-sdk:2.0.0.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
       - file:/Users/anilghodake/.m2/repository/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
       - file:/Users/anilghodake/Documents/pangea-health-app/node_modules/react-native/android/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
       - file:/Users/anilghodake/Documents/pangea-health-app/node_modules/jsc-android/dist/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
       - https://dl.google.com/dl/android/maven2/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
       - https://www.jitpack.io/com/surveymonkey/surveymonkey-android-sdk/2.0.0/surveymonkey-android-sdk-2.0.0.pom
     Required by:
         project :app > project :react-native-survey-monkey
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

https://github.com/yarikpwnzer/react-native-survey-monkey/issues/35#issuecomment-1408363982

jackkrone commented 1 year ago

add this to your android/build.gradle file at the bottom allprojects { repositories { jcenter() } }

Didn't have any luck with this

karell commented 2 months ago

I have locally changed this line to implementation 'com.surveymonkey:surveymonkey-android-sdk:3.0.5' and it works