• 1397/11/29

مشکل شروع با React-Native :

سلام . من دقیقا همونطور که در آموزش جامع React-Native نوشته شده پیش رفتم . با این که Open V*n ام روشن هست ، اما باز هم این ارور رو دریافت میکنم . 

react-native run-android
Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat installDebug)...

> Configure project :app
WARNING: The specified Android SDK Build Tools version (28.0.2) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.2.1.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '28.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Checking the license for package Android SDK Build-Tools 28.0.3 in C:\AndroidSDK\licenses
Warning: License for package Android SDK Build-Tools 28.0.3 not accepted.
Checking the license for package Android SDK Platform 28 in C:\AndroidSDK\licenses
Warning: License for package Android SDK Platform 28 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;28.0.3 Android SDK Build-Tools 28.0.3
     platforms;android-28 Android SDK Platform 28
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

  Using Android SDK: C:\AndroidSDK

* 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 35s
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html

Command failed: gradlew.bat installDebug

Error: Command failed: gradlew.bat installDebug
    at checkExecSyncError (child_process.js:601:13)
    at Object.execFileSync (child_process.js:621:13)
    at runOnAllDevices (C:\Users\Mohammad\Desktop\reactnative\HELLO\node_modules\react-native\local-cli\runAndroid\runAndroid.js:299:19)
    at buildAndRun (C:\Users\Mohammad\Desktop\reactnative\HELLO\node_modules\react-native\local-cli\runAndroid\runAndroid.js:135:12)
    at isPackagerRunning.then.result (C:\Users\Mohammad\Desktop\reactnative\HELLO\node_modules\react-native\local-cli\runAndroid\runAndroid.js:65:12)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

  • 1397/11/29
  • ساعت 07:30

سلام دوست من

طبق بروز رسانی که انجام شده باید برخی موارد دیگه انجام بشه ، چون در ورژن های اولیه هست روند بروز رسانی زود زود انجام میشه و مشکل ایجاد میکنه برای ساخت پروژه های جدید چون نیاز داره buildTools نسخه های جدید رو در اختیار داشته باشه.

لطفا ویدئوی 28ام رو ببینید تا مشکلتون حل بشه 

ممنون که گزارش دادید ویدئوی شروع کار رو حتما بروز رسانی میکنم.

در روند کار هر گونه مشکلی داشتید در خدمتتون هستم

موفق باشید.

 


logo-samandehi