Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Programming \ React Native     - Log4j configuration file Explanation (Linux)

- Ubuntu file security removal tool (Linux)

- Ubuntu server 8.04 Firewall Guide (Linux)

- Nine artifact control disk partition under Linux (Linux)

- Linux rpm command Detailed (Linux)

- Ubuntu 12.04 64bit Install Source Insight 3.5 and create desktop icons (Linux)

- C ++ two second pointer memory model (two-dimensional array) (Programming)

- CentOS6 5 Configure SSH password Free (Linux)

- The user how to install Notepadqq 0.41.0 under ubuntu and debian (Linux)

- Linux RAID Set RAID 10 or 0 + 1 (Linux)

- VirtualBox install Windows 8.1 has encountered an error 0x000000C4 solutions (Linux)

- Linux pwd command learning experience (Linux)

- The headers for the current running kernel were not found when VirtualBox installation enhancements (Linux)

- Linux Security Raiders SSH tools SCP uses examples to explain in detail (Linux)

- Linux Beginner Guide: Installing packages on Ubuntu and Fedora (Linux)

- JIRA 3.6.2 Upgrade from older version to the new version 6.0.8 (Linux)

- Linux system security settings after installation (Linux)

- 17 How to install the Ubuntu 14.04 and Linux Mint Kodi14 (XBMC) (Linux)

- Open SSH remote access service that allows Android phone Ubuntu 14.04 (Linux)

- Redhat 5 prohibit IPv6 (Linux)

 
         
  React Native
     
  Add Date : 2018-11-21      
         
         
         
  Surroundings

Install homebrew
Installation nodejs
Installation watchman, flow
Installation react-native
New Project

1
react-native init JustNoCode
After execution, has been stuck in Installing react-native package from npm ..., however,
I waited two days, and finally succeeded:

@feng -> github react-native init JustNoCode
prompt: Directory JustNoCode already exist Continue ?: (no) y.
This will walk you through creating a new React Native project in / Users / fengjian / Code / github / JustNoCode
Installing react-native package from npm ...
Setting up new React Native app in / Users / fengjian / Code / github / JustNoCode
create .gitignore
create .watchmanconfig
create index.ios.js
create index.Android.js
create ios / main.jsbundle
create ios / JustNoCode / AppDelegate.h
create ios / JustNoCode / AppDelegate.m
create ios / JustNoCode / Base.lproj / LaunchScreen.xib
create ios / JustNoCode / Images.xcassets / AppIcon.appiconset / Contents.json
create ios / JustNoCode / Info.plist
create ios / JustNoCode / main.m
create ios / JustNoCodeTests / JustNoCodeTests.m
create ios / JustNoCodeTests / Info.plist
create ios / JustNoCode.xcodeproj / project.pbxproj
create ios / JustNoCode.xcodeproj / xcshareddata / xcschemes / JustNoCode.xcscheme
create android / app / build.gradle
create android / app / proguard-rules.pro
create android / app / src / main / AndroidManifest.xml
create android / app / src / main / res / values ​​/ strings.xml
create android / app / src / main / res / values ​​/ styles.xml
create android / build.gradle
create android / gradle.properties
create android / settings.gradle
create android / app / src / main / res / mipmap-hdpi / ic_launcher.png
create android / app / src / main / res / mipmap-mdpi / ic_launcher.png
create android / app / src / main / res / mipmap-xhdpi / ic_launcher.png
create android / app / src / main / res / mipmap-xxhdpi / ic_launcher.png
create android / gradle / wrapper / gradle-wrapper.jar
create android / gradle / wrapper / gradle-wrapper.properties
create android / gradlew
create android / gradlew.bat
create android / app / src / main / java / com / justnocode / MainActivity.java
To run your app on iOS:
Open /Users/fengjian/Code/github/JustNoCode/ios/JustNoCode.xcodeproj in Xcode
Hit Run button
To run your app on Android:
Have an Android emulator running, or a device connected
cd / Users / fengjian / Code / github / JustNoCode
react-native run-android
 

Run Android

1
react-native run-android
The results given below:

@feng -> JustNoCode (master) react-native run-android
Starting JS server ...
Building and installing the app on the device (cd android && ./gradlew installDebug) ...
Download https://jcenter.bintray.com/com/android/tools/build/gradle/1.3.1/gradle-1.3.1.pom
Download https://jcenter.bintray.com/com/android/tools/build/gradle-core/1.3.1/gradle-core-1.3.1.pom
... ...
Download https://jcenter.bintray.com/com/android/tools/lint/lint-api/24.3.1/lint-api-24.3.1.jar
Failed to notify ProjectEvaluationListener.afterEvaluate (), but primary configuration failure takes precedence.
java.lang.RuntimeException: SDK location not found Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable..
    at com.android.build.gradle.internal.SdkHandler.getAndCheckSdkFolder (SdkHandler.java:102)
    ... ...
    at org.gradle.wrapper.GradleWrapperMain.main (GradleWrapperMainin.java:61)

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/fengjian/Code/github/JustNoCode/android/app/build.gradle' line: 20

* What went wrong:
A problem occurred evaluating project ': app'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

* 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: 52.605 secs
Could not install the app on the device, see the error above.
 

Arranged in .zshrc clicking ANDROID_HOME:

1
export ANDROID_HOME = ~ / Tools / android-sdk
 

Run again

@feng -> JustNoCode (master) react-native run-android
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug) ...
: App: preBuild UP-TO-DATE
... ...
: App: installDebug
Installing APK 'app-debug.apk' on 'Google Nexus S - 4.1.1 - API 16 - 480x800 - 4.1.1'
Installed on 1 device.

BUILD SUCCESSFUL

Total time: 10.294 secs

This build could be faster, please consider using the Gradle Daemon: http://gradle.org/docs/2.4/userguide/gradle_daemon.html
Starting the app (/ Users / fengjian / Tools / android-sdk / platform-tools / adb shell am start -n com.justnocode / .MainActivity) ...
Starting: Intent {cmp = com.justnocode / .MainActivity}
     
         
         
         
  More:      
 
- Linux server startup and logon security settings (Linux)
- MySQL combination Git achieve differential backups can be used in the production environment (Database)
- STL spatial Configurator (Programming)
- Java multi-threaded communications pipeline flow (Programming)
- Hibernate in profile (Database)
- How to monitor network usage by nload in Linux (Linux)
- Linux environment variable configuration and save places (Linux)
- Redis is installed and set up Ubuntu 14.04 from the environment under the main ssdb (Server)
- Puppet installation and testing (Server)
- GAMIT10.5 under CentOS installation (Linux)
- How to experience Unity 8 Mir on Ubuntu 16.04 (Linux)
- How to find an IP address through the command line (Linux)
- Linux using TCP-Wrapper Service Management (Linux)
- Android determine the device network connection status, and determine the connection (Programming)
- Let Mac OS X dedicated high-speed mobile hard disk can also be read in Linux (Linux)
- hadoop 2.7.1 High Availability Setup Deployment (Server)
- Linux System Getting Started Learning: rename multiple files in Linux (Linux)
- 10 Linux in the passwd command examples (Linux)
- Analyzing Linux server architecture is 32-bit / 64-bit (Server)
- Quick paging ROW_NUMBER conducted (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.