Skip to content

配置好报错, #212

@007jiang7442262

Description

@007jiang7442262

错误代码地址

https://github.com/007jiang7442262/error-react-native

版本号

"@babel/plugin-proposal-decorators": "^7.17.9",
"@react-native-community/datetimepicker": "^6.1.2",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "^6.6.1",
"@reduxjs/toolkit": "^1.8.1",
"@rneui/base": "^4.0.0-rc.1",
"@rneui/themed": "^4.0.0-rc.1",
"@types/react": "^18.0.6",
"@types/react-native": "^0.67.5",
"jcore-react-native": "^2.0.2",
"jmessage-react-plugin": "^3.2.0",
"jpush-react-native": "^2.9.0",
"react": "17.0.2",
"react-native": "0.68.1",
"react-native-amap-geolocation": "^1.1.2",
"react-native-common-date-picker": "^2.3.7",
"react-native-confirmation-code-field": "^7.3.0",
"react-native-gesture-handler": "^2.4.1",
"react-native-image-crop-picker": "^0.37.3",
"react-native-linear-gradient": "^2.5.6",
"react-native-safe-area-context": "^4.2.4",
"react-native-screens": "^3.13.1",
"react-native-slidepicker": "^1.2.0",
"react-native-svg": "^12.3.0",
"react-native-vector-icons": "^9.1.0",
"react-redux": "^8.0.1",
"teaset": "^0.7.5",
"tslib": "^2.4.0"

操作过程

npm run android

报错信息

image

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

BUILD FAILED in 17s

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 app:installDebug -PreactNativeDevServerPort=8081
/Users/jiangchao/Desktop/native/MyAPP/node_modules/jmessage-react-plugin/android/AndroidManifest.xml Error:
android:exported needs to be explicitly specified for . Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':jmessage-react-plugin:processDebugManifest'.

A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
Manifest merger failed with multiple errors, see logs

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

BUILD FAILED in 17s

at makeError (/Users/jiangchao/Desktop/native/MyAPP/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
at /Users/jiangchao/Desktop/native/MyAPP/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/jiangchao/Desktop/native/MyAPP/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/jiangchao/Desktop/native/MyAPP/node_modules/@react-native-community/cli/build/index.js:192:9)

info Run CLI with --verbose flag for more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions