map 库在旧项目中可以正常运行,其中react-native版本是0.55.3,react本地 map 是0.23.0
设置后,在新项目Android中,即在构建应用程序时,我不断遇到以下错误:

info JS server already running.
info Building and installing the app on the device (cd android && ./gradlew app:installAgroShopDebug)...

> Configure project :app
WARNING: API 'variant.getAssemble()' is obsolete and has been replaced with 'variant.getAssembleProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getAssemble(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.

> Task :react-native-maps:checkDebugManifest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-maps:checkDebugManifest'.
> Failed to create parent directory '/home/shockwav3/Downloads/mFarming/newRN/mFarming/node_modules/react-native-maps/lib/android/build/intermediates/check_manifest_result' when creating directory '/home/shockwav3/Downloads/mFarming/newRN/mFarming/node_modules/react-native-maps/lib/android/build/intermediates/check_manifest_result/debug/checkDebugManifest/out'

帮助将不胜感激。

最佳答案

升级react-native时,我遇到了类似的问题。奇怪的是,我通过使用sudo运行metro来修复它

10-08 03:11