【问题标题】:i cant run this app on my emulator CAN someone help me我无法在我的模拟器上运行这个应用程序有人能帮我吗
【发布时间】:2021-11-18 14:23:54
【问题描述】:

启动一个 Gradle Daemon,2 个不兼容的 Daemon 无法重用,使用 --status 了解详情

配置项目:app 警告:配置“编译”已过时,已替换为“实施”和“API”。 它将很快被删除。更多信息请见:http://d.android.com/r/tools/update-dependency-configurations.html

配置项目:react-native-check-app-install 警告:配置“编译”已过时,已替换为“实施”和“API”。 它将很快被删除。欲了解更多信息,请参阅:http://d.android.com/r/tools/update-dependency-configurations.html 警告:指定的 Android SDK 构建工具版本 (23.0.1) 将被忽略,因为它低于 Android Gradle 插件 3.5.2 的最低支持版本 (28.0.3)。 将使用 Android SDK 构建工具 28.0.3。 要禁止显示此警告,请从您的 build.gradle 文件中删除“buildToolsVersion '23.0.1'”,因为每个版本的 Android Gradle 插件现在都有一个默认版本的构建工具。

任务:react-native-community_async-storage:compileDebugJavaWithJavac

任务:react-native-community_masked-view:compileDebugJavaWithJavac

任务:react-native-community_picker:compileDebugJavaWithJavac

任务:react-native-community_datetimepicker:compileDebugJavaWithJavac

任务:react-native-gesture-handler:compileDebugJavaWithJavac

任务:react-native-push-notification:compileDebugJavaWithJavac

任务:react-native-linear-gradient:compileDebugJavaWithJavac

任务:react-native-vector-icons:compileDebugJavaWithJavac

任务:app:processDebugGoogleServices 解析json文件:C:\coding\App\storyqube-frontend\android\app\google-services.json

任务:react-native-check-app-install:compileDebugJavaWithJavac

任务:react-native-screens:compileDebugJavaWithJavac

任务:react-native-sound:compileDebugJavaWithJavac

任务:react-native-safe-area-context:compileDebugJavaWithJavac

任务:react-native-svg:compileDebugJavaWithJavac

任务:react-native-webview:compileDebugJavaWithJavac

任务:react-native-voice_voice:compileDebugJavaWithJavac

任务:app:processDebugResources 失败

此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 7.0 不兼容。 使用“--warning-mode all”显示各个弃用警告。 见https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings 246 个可操作的任务:246 个已执行 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:C:\coding\App\storyqube-frontend\node_modules@react-native-community\async-storage\android\src\main\java\com\reactnativecommunity\asyncstorage\AsyncStorageModule.java 使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:某些输入文件使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:C:\coding\App\storyqube-frontend\node_modules\react-native-gesture-handler\android\src\main\java\com\swmansion\gesturehandler\react\RNGestureHandlerButtonViewManager.java 使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 注意:某些输入文件使用未经检查或不安全的操作。 注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:C:\coding\App\storyqube-frontend\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java 使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 注意:C:\coding\App\storyqube-frontend\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotification.java 使用未经检查或不安全的操作。 注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:某些输入文件使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 注意:某些输入文件使用未经检查或不安全的操作。 注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:C:\coding\App\storyqube-frontend\node_modules\react-native-sound\android\src\main\java\com\zmxv\RNSound\RNSoundModule.java 使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 注意:某些输入文件使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 注意:C:\coding\App\storyqube-frontend\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java 使用未经检查或不安全的操作。 注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告

FAILURE:构建失败并出现异常。

  • 出了什么问题: 任务“:app:processDebugResources”执行失败。

执行 com.android.build.gradle.internal.tasks.Workers$ActionFacade 时发生故障 Android资源链接失败 C:\coding\App\storyqube-frontend\android\app\src\main\AndroidManifest.xml:13:5-71:19: AAPT: error: resource mipmap/storyqube (aka com.storyqube:mipmap/storyqube) not找到了。

  • 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。

  • 通过https://help.gradle.org获得更多帮助

41 秒后构建失败

错误 无法安装应用程序。确保您已设置 Android 开发环境:https://reactnative.dev/docs/environment-setup。使用 --verbose 标志运行 CLI 以获取更多详细信息。 错误:命令失败:gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:C:\coding\App\storyqube-frontend\node_modules@react-native-community\async-storage\android\src\main\java\com\reactnativecommunity\asyncstorage\AsyncStorageModule.java 使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:某些输入文件使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:C:\coding\App\storyqube-frontend\node_modules\react-native-gesture-handler\android\src\main\java\com\swmansion\gesturehandler\react\RNGestureHandlerButtonViewManager.java 使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 注意:某些输入文件使用未经检查或不安全的操作。 注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:C:\coding\App\storyqube-frontend\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java 使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 注意:C:\coding\App\storyqube-frontend\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotification.java 使用未经检查或不安全的操作。 注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:某些输入文件使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 注意:某些输入文件使用未经检查或不安全的操作。 注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 注意:C:\coding\App\storyqube-frontend\node_modules\react-native-sound\android\src\main\java\com\zmxv\RNSound\RNSoundModule.java 使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告 注意:某些输入文件使用或覆盖已弃用的 API。 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 注意:C:\coding\App\storyqube-frontend\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java 使用未经检查或不安全的操作。 注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 警告:[options] 源值 7 已过时,将在未来版本中删除 警告:[options] 目标值 7 已过时,将在未来版本中删除 警告:[选项] 要禁止有关过时选项的警告,请使用 -Xlint:-options。 3 个警告

FAILURE:构建失败并出现异常。

  • 出了什么问题: 任务“:app:processDebugResources”执行失败。

执行 com.android.build.gradle.internal.tasks.Workers$ActionFacade 时发生故障 Android资源链接失败 C:\coding\App\storyqube-frontend\android\app\src\main\AndroidManifest.xml:13:5-71:19: AAPT: error: resource mipmap/storyqube (aka com.storyqube:mipmap/storyqube) not找到了。

  • 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。

  • 通过https://help.gradle.org获得更多帮助

41 秒后构建失败

at makeError (C:\coding\App\storyqube-frontend\node_modules\execa\index.js:174:9)
at C:\coding\App\storyqube-frontend\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (C:\coding\App\storyqube-frontend\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)      
at async Command.handleAction (C:\coding\App\storyqube-frontend\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:186:9)

这是我的日志,我不知道我的代码有什么问题,但没有任何帮助

【问题讨论】:

标签: android reactjs react-native gradle


【解决方案1】:

据我所知,从您的 Android Manifest 中某处的日志或您的本机 android 代码中,您调用了来自 com.storyqube 包的资源 mipmap/storyqube。构建过程失败,因为根本找不到该文件。你能检查一下你的代码中是否有对它的引用吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-10-17
    • 2015-01-14
    • 2021-12-26
    • 2018-10-21
    • 2017-07-03
    • 2020-01-07
    • 1970-01-01
    相关资源
    最近更新 更多