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

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

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:引起了问题。
如果尚未添加,请删除该库或再次添加它,然后正确链接。

请按照手册中的说明进行更多控制。
由于找不到库,可能是链接问题。

10-05 23:12
查看更多