jsc-android-buildscripts icon indicating copy to clipboard operation
jsc-android-buildscripts copied to clipboard

/usr/local/share/android-sdk/cmake: No such file or directory

Open canpoyrazoglu opened this issue 4 years ago • 1 comments

Bug

I've done everything line by line in README. In npm run start after a few minutes I got this:

		=================== compiling jsc for arm no-intl ===================


/Users/Can/Documents/Programming/Android/JSC/jsc-android-buildscripts/scripts/compile/jsc.sh: line 6: cd: /usr/local/share/android-sdk/cmake: No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `./scripts/start.sh`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.

Environment info


  React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (8) x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
      Memory: 124.36 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.4.0 - /usr/local/bin/node
      Yarn: 1.17.0 - /usr/local/bin/yarn
      npm: 6.9.2 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
    IDEs:
      Android Studio: 3.4 AI-183.6156.11.34.5522156
      Xcode: 10.2/10E125 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.6 => 16.8.6 
      react-native: 0.59.9 => 0.59.9 
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-gesture-handler: 1.0.16

Library version: 245459.0.0

Steps To Reproduce

npm run clean
npm run download
npm run start

Describe what you expected to happen:

  1. Build should succeed

I don't know what is meant by "update version number" and "update config section", I'm just trying to get the binary as my app on Android is crashing due to Intl. Don't know if it failed because of those.

canpoyrazoglu avatar Jul 08 '19 20:07 canpoyrazoglu

Same issue in 2021. jsc.sh: line 6: cd: /Users/user/Library/Android/sdk/cmake: No such file or directory

UPD: Looks like cmake wasn't installed by default in Android Studio. After I have installed it - issue is gone!

ByTE1974 avatar Oct 04 '21 08:10 ByTE1974