Yerli Tepki de bir problem yapılandırılması projesini oluştu

oy
0

Yerli gelişimini Tepki I yeniyim. Ben kullanarak emülatörü bir proje çalıştırmak çalışıyorum react-native run-android. Ben hata altına alıyorum.

foysal@laptop:~/Videos/addbook$ react-native run-android
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...

> Configure project :app
Observed package id 'tools' in inconsistent location '/home/foysal/Android/Sdk/tools' (Expected '/home/foysal/Android/Sdk/tools/tools')
Checking the license for package Android SDK Build-Tools 27.0.3 in /home/foysal/Android/Sdk/tools/licenses
Warning: License for package Android SDK Build-Tools 27.0.3 not accepted.
Checking the license for package Android SDK Platform 27 in /home/foysal/Android/Sdk/tools/licenses
Warning: License for package Android SDK Platform 27 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.
     platforms;android-27 Android SDK Platform 27
     build-tools;27.0.3 Android SDK Build-Tools 27.0.3
  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: /home/foysal/Android/Sdk/tools

* 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 3s
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
Oluştur 20/10/2018 saat 13:55
kaynak kullanıcı
Diğer dillerde...                            


1 cevaplar

oy
1

yerine "çalışma android yerli tepki" "npm hizmet" kullanın ve cep içinde expo uygulamasını veya kullanmak genymotion emülatörü

Cevap 20/10/2018 saat 14:22
kaynak kullanıcı

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more