GithubHelp home page GithubHelp logo

ionic_test's Introduction

Download Android SDK from the official site, you may download only the Command Line Tools instead of the entire Android Studio IDE, this guide will refer to the Command Line Tools. https://developer.android.com/studio/#downloads

Decompress and go to <path to the decompresed android sdk>/Android/Sdk/tools/bin from your console.

To get the list of available android system images run ./sdkmanager --list

Install a image using ./sdkmanager --install "system-images;android-24;default;x86_64". Change the system image name for the one you need. If you haven't accepted the sdk licenses before, you will be asked now, accept them and continue.

If you get the following warning Warning: File /home/<YourUser>/.android/repositories.cfg could not be loaded. .Simply create an empty file on that path, named repositories.cfg

If you get the following warning Warning: Failed to read or create install properties file. You may run the install command with sudo or try to fix the permissions

If you get the error ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/java-8-oracle. First go to /usr/lib/jvm/ and check the name of your java installation folder. Then open the environment file /etc/environment and change the JAVA_HOME variable to the name of you java folder, e.g: JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64", name and version may change.

install cordova npm install -g cordova ionic cordova platform add then android add ANDROID_HOME export path to installation folder run javac -version to see if available, if not install the suggested version (headless) sudo apt-get install gradle ./sdkmanager --install "platform-tools" "platformandroid" "emulator" export ANDROID_HOME=/home/lsrodriguezmz/AndroidStudio_SDK_CMD_LINUX /home/lsrodriguezmz/Escritorio/Proyectos_Ionic/IonicTest/ionic_test/platforms/android/app/src/main/res/values/strings.xml 1005005713003967 MyApp config.xml

After the android system image download and installation is complete, you can create the Android Virtual Device (AVD)

To create an Android virtual device go to <path to the decompresed android sdk>/Android/Sdk/tools/bin and run ./avdmanager create avd --name MyAVD -k "system-images;android-24;default;x86_64". Use the name and system image you want.

To run the emulator go to your ionic project folder, and run ionic cordova run android

To install your app on the emulator, go to the folder were the app was compiled, usually <ProjectRootFolder>/platforms/android/app/build/outputs/apk/debug/app-debug.apk, and drag and drop the apk on the emulator window, it will automatically start the installation

ionic_test's People

Contributors

lsrodriguezmz avatar zoilogranda avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.