ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • "com.mg.RxCustomizedImagePicker : fileprovider : 1.0.0을 찾을 수 없습니다"로 인해 반응 네이티브에서 Android를 실행할 수 없습니다.
    카테고리 없음 2020. 8. 14. 16:13

    질문

    React 네이티브 Android 코드를 처음으로 실행하고 IOS 코드가 정상적으로 실행되지만 Android 코드를 실행하려고 할 때이 오류가 발생했습니다. 어떻게해야하나요?

    $ react-native run-android
    
    yarn run v1.22.4
    $ react-native run-android
    warn The following packages use deprecated "rnpm" config that will stop working from next release:
      - native-base: https://github.com/GeekyAnts/NativeBase#readme
    Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
    info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
    Jetifier found 1113 file(s) to forward-jetify. Using 12 workers...
    info JS server already running.
    info Installing the app...
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Could not determine the dependencies of task ':app:preDebugBuild'.
    > Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
       > Could not find com.mg.RxCustomizedImagePicker:fileprovider:1.0.0.
         Searched in the following locations:
           - file:/Users/XXXlaptop/.m2/repository/com/mg/RxCustomizedImagePicker/fileprovider/1.0.0/fileprovider-1.0.0.pom
           - file:/Users/XXXlaptop/.m2/repository/com/mg/RxCustomizedImagePicker/fileprovider/1.0.0/fileprovider-1.0.0.jar
           - file:/Users/XXXlaptop/Documents/Code/uf-mobile/node_modules/react-native/android/com/mg/RxCustomizedImagePicker/fileprovider/1.0.0/fileprovider-1.0.0.pom
           - file:/Users/XXXlaptop/Documents/Code/uf-mobile/node_modules/react-native/android/com/mg/RxCustomizedImagePicker/fileprovider/1.0.0/fileprovider-1.0.0.jar
           - file:/Users/XXXlaptop/Documents/Code/uf-mobile/node_modules/jsc-android/dist/com/mg/RxCustomizedImagePicker/fileprovider/1.0.0/fileprovider-1.0.0.pom
           - file:/Users/XXXlaptop/Documents/Code/uf-mobile/node_modules/jsc-android/dist/com/mg/RxCustomizedImagePicker/fileprovider/1.0.0/fileprovider-1.0.0.jar

    답변1

    프로젝트의 루트에서 먼저 실행하십시오.

    cd android

    그런 다음 실행하십시오.

    gradlew clean

    그 후 gradle이 프로젝트를 실행하면 다음이 실행됩니다.

    cd ..

    마지막으로 실행 :

    npx react-native run-android


     

     

     

     

    출처 : https://stackoverflow.com/questions/62737489/cannot-run-android-in-react-native-due-to-could-not-find-com-mg-rxcustomizedima

    댓글

Designed by Tistory.