【问题标题】:A problem occurred configuring project ':react-native-static-server'配置项目 \':react-native-static-server\' 时出现问题
【发布时间】:2022-08-10 04:51:39
【问题描述】:

android 应用程序设置中面临的错误问题

1: Task failed with an exception.
-----------
* Where:
Build file \'/Users/rover/Desktop/appflow/node_modules/react-native-static-server/android/build.gradle\' line: 23

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

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project \':react-native-static-server\'.
> com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle

在模拟器上安装应用程序时,我在 android 上收到此错误。检查了一些在线答案,但无法解决。

    标签: react-native


    【解决方案1】:

    基本上这不是一个好的解决方案,但是您可以在打开 android 文件夹后进入节点模块并找到您的包并执行下一个而不是使用: 应用插件:'maven' 你应该使用 应用插件:'maven-publish',它将解决错误。我不建议这样做,但它可能会有所帮助。享受

    【讨论】:

      猜你喜欢
      • 2022-01-14
      • 1970-01-01
      • 1970-01-01
      • 2022-09-26
      • 2020-12-19
      • 2020-04-08
      • 1970-01-01
      • 1970-01-01
      • 2023-02-13
      相关资源
      最近更新 更多