gpt4 book ai didi

android - 无法运行应用程序显示安装应用程序失败

转载 作者:行者123 更新时间:2023-11-29 13:54:15 25 4
gpt4 key购买 nike

在打开我的笔记本电脑并使用 react-native run-android 运行该应用程序后,该应用程序未安装,但在前一天它运行良好(注意:未添加额外代码)

我做了一些基础研究并删除了 node_module 并完成了 npm install 重新启动服务器清除了 watchman 缓存文件但仍然没有希望

react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 905 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Installing the app...

> Configure project :react-native-locale-detector
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.4.1.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve project :react-native-sensitive-info.
Required by:
project :app
> Unable to find a matching configuration of project :react-native-sensitive-info:
- None of the consumable configurations have attributes.

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve project :react-native-sensitive-info.
Required by:
project :app
> Unable to find a matching configuration of project :react-native-sensitive-info:
- None of the consumable configurations have attributes.

* 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

at checkExecSyncError (child_process.js:639:11)
at execFileSync (child_process.js:657:15)
at runOnAllDevices (/home/quinoid/Projects/ReactWk/test/DrManar/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:74:39)
at buildAndRun (/home/quinoid/Projects/ReactWk/test/DrManar/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:158:41)
at then.result (/home/quinoid/Projects/ReactWk/test/DrManar/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:125:12)
at processTicksAndRejections (internal/process/task_queues.js:86:5)

最佳答案

react-native-sensitive-info: 导致了这个问题。如果您尚未添加,请删除库或重新添加,然后正确链接。

按照手动说明进行操作以获得更多控制。可能是链接问题,因为找不到库。

关于android - 无法运行应用程序显示安装应用程序失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57725583/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com