小编Spa*_*roo的帖子

未找到 react-native run-android 插件且未指定编译 sdk

运行命令时npx react-native run-android --port=80 --verbose 出现错误:
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=80

然后在上面我可以看到:

1: Task failed with an exception.

-----------
* Where:
Build file 'C:\location\node_modules\react-native-create-thumbnail\android\build.gradle' line: 23

* What went wrong:
A problem occurred evaluating project ':react-native-create-thumbnail'.
> Plugin with id 'maven' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to …
Run Code Online (Sandbox Code Playgroud)

android gradle maven react-native npx

5
推荐指数
1
解决办法
527
查看次数

标签 统计

android ×1

gradle ×1

maven ×1

npx ×1

react-native ×1