简体   繁体   中英

FAILURE: Build failed with an exception React-native

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':app'.

    Could not resolve all dependencies for configuration ':app:_debugApk'. A problem occurred configuring project ':react-native-linear-gradient'. Could not resolve all dependencies for configuration ':react-native-linear-gradient:_debugCompileCopy'. Could not find com.android.support:appcompat-v7:26.1.0. Searched in the following locations: file:/Users/omkaryadav/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom file:/Users/omkaryadav/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar file:/Users/omkaryadav/Documents/project/react/Archive/android/sdk-manager/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar Required by: project :react-native-linear-gradient > com.facebook.react:react-native:0.56.0

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 13.577 secs

You have to link 3rd party libraries before building your project. That specific library you can link automatically by running react-native link . If you didn't already, run npm install before command above.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM