最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Could not find com.facebook.fresco:stetho:2.2.0 getting this error while running a newly created app. I'm t

programmeradmin1浏览0评论

*** What went wrong: Could not determine the dependencies of task ':app:mergeDebugAssets'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. Could not find .facebook.fresco:stetho:2.2.0. Searched in the following locations: - file:/D:/React/Projects/node_modules/react-native/android//facebook/fresco/stetho/2.2.0/stetho-2.2.0.pom - file:/D:/React/Projects/node_modules/jsc-android/dist//facebook/fresco/stetho/2.2.0/stetho-2.2.0.pom - .2.0/stetho-2.2.0.pom - .2.0/stetho-2.2.0.pom - .2.0/stetho-2.2.0.pom Required by: project :app > .facebook.flipper:flipper-fresco-plugin:0.75.1**

npx react-native info

info Fetching system and libraries information...
System:
OS: Windows 10 10.0.22000
CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz
Memory: 3.47 GB / 15.78 GB
Binaries:
Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java: 18.0.1.1 - C:\Program Files\Common Files\Oracle\Java\javapath\javac.EXE
npmPackages:
@react-native-munity/cli: Not Found
react: 17.0.2 => 17.0.2 
react-native: 0.68.2 => 0.68.2 
react-native-windows: Not Found
npmGlobalPackages:
*react-native*: Not Found

*** What went wrong: Could not determine the dependencies of task ':app:mergeDebugAssets'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. Could not find .facebook.fresco:stetho:2.2.0. Searched in the following locations: - file:/D:/React/Projects/node_modules/react-native/android//facebook/fresco/stetho/2.2.0/stetho-2.2.0.pom - file:/D:/React/Projects/node_modules/jsc-android/dist//facebook/fresco/stetho/2.2.0/stetho-2.2.0.pom - https://repo.maven.apache/maven2//facebook/fresco/stetho/2.2.0/stetho-2.2.0.pom - https://dl.google./dl/android/maven2//facebook/fresco/stetho/2.2.0/stetho-2.2.0.pom - https://www.jitpack.io//facebook/fresco/stetho/2.2.0/stetho-2.2.0.pom Required by: project :app > .facebook.flipper:flipper-fresco-plugin:0.75.1**

npx react-native info

info Fetching system and libraries information...
System:
OS: Windows 10 10.0.22000
CPU: (16) x64 Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz
Memory: 3.47 GB / 15.78 GB
Binaries:
Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java: 18.0.1.1 - C:\Program Files\Common Files\Oracle\Java\javapath\javac.EXE
npmPackages:
@react-native-munity/cli: Not Found
react: 17.0.2 => 17.0.2 
react-native: 0.68.2 => 0.68.2 
react-native-windows: Not Found
npmGlobalPackages:
*react-native*: Not Found
Share Improve this question edited Jun 8, 2022 at 11:19 Jey Prakash asked Jun 8, 2022 at 11:18 Jey PrakashJey Prakash 131 silver badge7 bronze badges 1
  • hi, did you manage to solve this issue?.. i am getting same error, any ideas? – Boris Commented Nov 2, 2022 at 3:36
Add a ment  | 

2 Answers 2

Reset to default 12

Updating FLIPPER_VERSION inside android/gradle.properties fixed this problem for me:

# Version of flipper SDK to use with 
React Native FLIPPER_VERSION=0.99.0

Credit to: https://github./facebook/flipper/issues/2683#issuement-944085698

Downgrading facebookSdkVersion from "12.3.0" to "11.1.0" in android/build.gradle file and cleaning gradlew with ./gradlew clean in android folder helped.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论