Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'报错



  • 运行公司项目时 react-native run-android
    一直报错

    • What went wrong:
      Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

    Could not resolve all task dependencies for configuration ':app:debugCompileCl asspath'.
    Could not resolve project :react-native-aliyun-oss.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-aliyun- oss: None of the consumable configurations have attributes.
    Could not resolve project :react-native-fetch-blob.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-fetch-b lob: None of the consumable configurations have attributes.
    Could not resolve project :react-native-wechat.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-wechat: None of the consumable configurations have attributes.
    Could not resolve project :react-native-webview.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-webview : None of the consumable configurations have attributes.
    Could not resolve project :react-native-clear-cache.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-clear-c ache: None of the consumable configurations have attributes.
    Could not resolve project :react-native-amap-geolocation.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-amap-ge olocation: None of the consumable configurations have attributes.
    Could not resolve project :reactNativeClearCache.
    Required by:
    project :app
    Unable to find a matching configuration of project :reactNativeClearCach e: None of the consumable configurations have attributes.
    Could not resolve project :react-native-svg.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-svg: No ne of the consumable configurations have attributes.
    Could not resolve project :react-native-camera.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-camera: None of the consumable configurations have attributes.
    Could not resolve project :react-native-splash-screen.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-splash- screen: None of the consumable configurations have attributes.
    Could not resolve project :react-native-image-crop-picker.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-image-c rop-picker: None of the consumable configurations have attributes.
    Could not resolve project :react-native-vector-icons.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-vector- icons: None of the consumable configurations have attributes.

    如图0_1543990811288_4eb637bb8d7489ba4a18fd3173498cf.png



  • @molujinweiliangCould not determine the dependencies of task ':app:compileDebugJavaWithJavac'报错 中说:

    运行公司项目时 react-native run-android
    一直报错

    • What went wrong:
      Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

    Could not resolve all task dependencies for configuration ':app:debugCompileCl asspath'.
    Could not resolve project :react-native-aliyun-oss.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-aliyun- oss: None of the consumable configurations have attributes.
    Could not resolve project :react-native-fetch-blob.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-fetch-b lob: None of the consumable configurations have attributes.
    Could not resolve project :react-native-wechat.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-wechat: None of the consumable configurations have attributes.
    Could not resolve project :react-native-webview.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-webview : None of the consumable configurations have attributes.
    Could not resolve project :react-native-clear-cache.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-clear-c ache: None of the consumable configurations have attributes.
    Could not resolve project :react-native-amap-geolocation.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-amap-ge olocation: None of the consumable configurations have attributes.
    Could not resolve project :reactNativeClearCache.
    Required by:
    project :app
    Unable to find a matching configuration of project :reactNativeClearCach e: None of the consumable configurations have attributes.
    Could not resolve project :react-native-svg.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-svg: No ne of the consumable configurations have attributes.
    Could not resolve project :react-native-camera.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-camera: None of the consumable configurations have attributes.
    Could not resolve project :react-native-splash-screen.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-splash- screen: None of the consumable configurations have attributes.
    Could not resolve project :react-native-image-crop-picker.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-image-c rop-picker: None of the consumable configurations have attributes.
    Could not resolve project :react-native-vector-icons.
    Required by:
    project :app
    Unable to find a matching configuration of project :react-native-vector- icons: None of the consumable configurations have attributes.

    如图0_1543990811288_4eb637bb8d7489ba4a18fd3173498cf.png

    自己新建的项目是能够跑的起来的,感觉本地环境应该没问题,求大佬帮忙,实在是没得办法了,网上百度试了很多



  • 你的node_modules里有这些project吗



  • @晴明 这个我试过,我有去install里面的第一个,重新启动,提示还是存在



  • 你回答的是我的问题吗?"你的node_modules里这些project吗"



  • @晴明 没有,那我应该怎么弄



  • 没有你就装啊,不然呢?