سلام من می خوام linear-gradient رو به پروژم اضافه کنم طبق دستور العمل خودش پیش میرم اما موقع build شدن به این خطا می خوره
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Jabbari\Desktop\myApp\android\app\build.gradle' line: ۲۲۸
* What went wrong:
Could not compile build file 'C:\Users\Jabbari\Desktop\myApp\android\app\build.gradle'.
> startup failed:
build file 'C:\Users\Jabbari\Desktop\myApp\android\app\build.gradle': ۲۲۸: expecting '}', found '' @ line ۲۲۸, column ۱.
۱ error
* 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 ۸s
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=۸۰۸۱
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Jabbari\Desktop\myApp\android\app\build.gradle' line: ۲۲۸
* What went wrong:
Could not compile build file 'C:\Users\Jabbari\Desktop\myApp\android\app\build.gradle'.
> startup failed:
build file 'C:\Users\Jabbari\Desktop\myApp\android\app\build.gradle': ۲۲۸: expecting '}', found '' @ line ۲۲۸, column ۱.
۱ error
* 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 ۸s
at makeError (C:\Users\Jabbari\Desktop\myApp\node_modules\execa\index.js:۱۷۴:۹)
at C:\Users\Jabbari\Desktop\myApp\node_modules\execa\index.js:۲۷۸:۱۶
at processTicksAndRejections (internal/process/task_queues.js:۹۷:۵)
at async runOnAllDevices (C:\Users\Jabbari\Desktop\myApp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:۹۴:۵)
at async Command.handleAction (C:\Users\Jabbari\Desktop\myApp\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:۱۸۶:۹)
npm ERR! code ELIFECYCLE
npm ERR! errno ۱
npm ERR! myApp@۰.۰.۱ android: `react-native run-android`
npm ERR! Exit status ۱
npm ERR!
npm ERR! Failed at the myApp@۰.۰.۱ android script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Jabbari\AppData\Roaming\npm-cache\_logs\۲۰۲۰-۰۴-۰۲T۰۸_۱۲_۵۹_۶۷۹Z-debug.log
Process finished with exit code ۱
ممنون می شم راهنمایی کنید چه طور حلش کنم؟
من حس میکنم شما اشتباها فایل build.gradle رو دستکاری کردید و سینتکش دچار مشکل شده در خط 228 فایل build.gradle
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟