Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Android stuffs #192

Open
mhulse opened this issue Jun 14, 2018 · 1 comment
Open

Android stuffs #192

mhulse opened this issue Jun 14, 2018 · 1 comment

Comments

@mhulse
Copy link
Owner

mhulse commented Jun 14, 2018

https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03#gistcomment-2376496

See the last few comments.

@mhulse
Copy link
Owner Author

mhulse commented Jun 20, 2018

Add this to common.bash:

# Android
export ANDROID_NDK_HOME=/usr/local/share/android-ndk
export ANDROID_SDK_ROOT=/usr/local/share/android-sdk

Right below this java stuff:

# Java
# You may need to run:
# $ java --request
# and click “More Info…” to visit the Java Developer Kit download website.
export JRE_HOME=$(/usr/libexec/java_home)
export JAVA_HOME=$(/usr/libexec/java_home)

Reasoning:

$ brew cask install android-sdk
==> Caveats
You can control android sdk packages via the sdkmanager command.
You may want to add to your profile:

  'export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"'

android-sdk requires Java 8. You can install it with

  brew cask install homebrew/cask-versions/java8

…

$ brew cask install android-ndk
==> Caveats
You may want to add to your profile:
   'export ANDROID_NDK_HOME="/usr/local/share/android-ndk"'

Though, for the java dep, I think I currently prefer to use SDKMan to manage java bits on my Mac/Linux:

$ sdk list java
==== BROADCAST =================================================================
* 18/06/18: Grails 3.3.6 released on SDKMAN! #grailsfw
* 15/06/18: Spark 2.3.1 released on SDKMAN! #spark
* 13/06/18: Kotlin 1.2.50 released on SDKMAN! #kotlin
================================================================================

================================================================================
Available Java Versions
================================================================================
     9.0.7-zulu
     9.0.4-openjdk
   * 8.0.172-zulu
 > * 8.0.171-oracle
     7.0.181-zulu
     10.0.1-zulu
     10.0.1-oracle
     10.0.0-openjdk








================================================================================
+ - local version
* - installed
> - currently in use
================================================================================

@mhulse mhulse added this to the future milestone Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant