Hello sobat coding, sebelumnya kita sudah mengenal Apa Itu React Native dan Membuat Aplikasi Android / iOS dengan React Native + Emulator Expo. Karena kita nantinya akan belajar menggunakan native code, maka kita juga akan menggunakan react native yang versi CLI.

Sebelum kita belajar lebih jauh, alangkah lebih baik jika kita paham dan sukses tahap yang paling dasar yaitu instalasi program atau senjata coding di laptop kita masing-masing. Bagi yang menggunakan OS windows, tutorial kali ini khusus membahas cara install react native cli di windows dan sekaligus pembuatan aplikasi pertama (hello world) dengan react native cli di windows.

Tutorial lainInstalasi React Native CLI di Linux + Create First Android App

Langsung saja kita bisa ikuti bersama pada video dibawah ini. Dijamin work 100% asal teliti dan mengikuti arahan dengan benar. Jika beda versi bisa ikuti sesuai web dokumentasi resminya.

Gimana, berhasil kan? Silakan sobat berkomentar baik sukses sesuai tutorial ataupun gagal, agar kita bisa belajar dan sharing bersama.

Baca jugaMembuat Aplikasi Android Pertama dengan Android Studio

Jangan lupa untuk like, share, dan subsribe tutorial-tutorial menarik dari YukCoding Tutor. Semoga bermanfaat, terimakasih. Happy coding 🙂

2 COMMENTS

  1. D:\Android Studio Projek\belajar react native\latihanPertama>react-native run-android
    JS server already running.
    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:\Users\user\AppData\Local\Android\android-sdk\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:\Users\user\AppData\Local\Android\android-sdk\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:\Users\user\AppData\Local\Android\android-sdk

    * 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

    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 (D:\Android Studio Projek\belajar react native\latihanPertama\node_modules\react-native\local-cli\runAndroid\runAndroid.js:299:19)
    at buildAndRun (D:\Android Studio Projek\belajar react native\latihanPertama\node_modules\react-native\local-cli\runAndroid\runAndroid.js:135:12)
    at isPackagerRunning.then.result (D:\Android Studio Projek\belajar react native\latihanPertama\node_modules\react-native\local-cli\runAndroid\runAndroid.js:65:12)
    at
    at process._tickCallback (internal/process/next_tick.js:188:7)

    GIMANA NGATASINYA

TINGGALKAN KOMENTAR

Please enter your comment!
Please enter your name here