Skip to content

Instantly share code, notes, and snippets.

@hiyali
Last active August 7, 2016 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiyali/684f29e18c472d89d0f2929e7ec1df64 to your computer and use it in GitHub Desktop.
Save hiyali/684f29e18c472d89d0f2929e7ec1df64 to your computer and use it in GitHub Desktop.
#####################################
::: gradle :::
[prod-path]/platforms/android/cordova/lib/builders/GradleBuilder.js
var distributionUrl = 'distributionUrl=http\\://services.gradle.org/distributions/gradle-2.2.1-all.zip';
And replace it with your own file's location:
var distributionUrl = 'distributionUrl=../gradle-2.2.1-all.zip';
####################################
::: android target :::
[prod-path]/platforms/android/project.properties
target=android-23 # or your installed version
####################################
::: locally download jdk and android ::: (in your .bashrc || .zshrc || .config/fish/config.fish)
set -gx JAVA_HOME /work/zulu8.15.0.1-jdk8.0.92-linux_x64
set -gx PATH $JAVA_HOME/bin \
$HOME/OLD/lida/apps/vuze \
/work/android-studio/gradle/gradle-2.10/bin \
/work/android-sdk-linux \
/work/android-sdk-linux/tools \
/work/android-sdk-linux/platform-tools \
/work/android-sdk-linux/build-tools/23.0.1/ \
$PATH
set -gx ANDROID_HOME /work/android-studio/ /work/android-studio/bin/
####################################
::: for (:CordovaLib:processDebugResources FAILED) :::
If you are using a Ubuntu 32bit version
sudo apt-get install libgl1-mesa-dev
If your Ubuntu is a 64bit and its version is <= 13.04, run:
sudo apt-get install ia32-libs
In case of Ubuntu 64bit and version >=13.10, run:
sudo apt-get install libgl1-mesa-dev:i386
###################################
::: debug (after cordova run android) :::
adb logcat
###################################
set RAM size / etc.. to bigger than
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment