{"id":23114393,"url":"https://github.com/kasparsbergs/prep_ionic_on_linux","last_synced_at":"2026-05-04T15:39:18.012Z","repository":{"id":85066759,"uuid":"192241050","full_name":"kasparsbergs/prep_ionic_on_linux","owner":"kasparsbergs","description":"things to do before getting started with ionic development on linux","archived":false,"fork":false,"pushed_at":"2019-06-16T23:48:59.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-09T12:31:10.970Z","etag":null,"topics":["android-studio","capacitor","cordova","development-mode","gradle","guide","ionic","java-8","native-run","node-js-v8","nvm","requirements","sdkman","setup"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kasparsbergs.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-16T22:05:08.000Z","updated_at":"2019-06-16T23:49:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"89209a41-0b1e-4430-a9ba-ad13fbdc5225","html_url":"https://github.com/kasparsbergs/prep_ionic_on_linux","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasparsbergs%2Fprep_ionic_on_linux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasparsbergs%2Fprep_ionic_on_linux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasparsbergs%2Fprep_ionic_on_linux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasparsbergs%2Fprep_ionic_on_linux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kasparsbergs","download_url":"https://codeload.github.com/kasparsbergs/prep_ionic_on_linux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247103305,"owners_count":20884023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-studio","capacitor","cordova","development-mode","gradle","guide","ionic","java-8","native-run","node-js-v8","nvm","requirements","sdkman","setup"],"created_at":"2024-12-17T03:30:15.413Z","updated_at":"2026-05-04T15:39:12.984Z","avatar_url":"https://github.com/kasparsbergs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ionic setup checklist on linux\n\n## Android Studio\n\n\nDownload [android-studio-ide-xxx.xxxxxxx-linux.tar.gz](https://developer.android.com/studio/index.html)\n\n\n## Gradle\nAs of Cordova-Android 6.4.0 Gradle is now required to be installed to build Android.\n\n[SDKMAN!](https://sdkman.io/) is a tool for managing parallel versions of multiple Software Development Kits on most Unix-based systems.\n\n```bash\ncurl -s \"https://get.sdkman.io\" | bash\n```\n\n```bash\nsdk install gradle 5.4.1\n```\n\n## Java JDK 8\n\n[Download java sdk 8](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)\n\n\n\n**Step 1:**\nDownload the latest JDK(jdk-8u212-linux-x64.tar.gz) from this official [link](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html).\n\n**Step 2:**\nOpen the terminal (Ctrl + Alt + T) and enter the following command.\n\n    sudo mkdir /usr/lib/jvm\n\n**Step 3:**\nEnter the following command to change the directory.\n\n    cd /usr/lib/jvm\n\n**Step 4:**\nExtract the jdk-8u212-linux-x64.tar.gz file in that directory using this command.\n\n    sudo tar -xvzf ~/Downloads/jdk-8u212-linux-x64.tar.gz\n\n**Step 5:**\nEnter the following command to open the environment variables file.\n\n    sudo -H gedit /etc/environment\n\n**Step 6:**\nIn the opened file, add the following bin folders to the existing PATH variable.\n\n    /usr/lib/jvm/jdk1.8.0_212/bin\n    /usr/lib/jvm/jdk1.8.0_212/jre/bin\n\nThe PATH variables have to be separated by colon.\nNotice that the installed JDK version is 1.8 update 212. Depending on your JDK version, the paths can be different.\nAdd the following environment variables at the end of the file.\n\n    J2SDKDIR=\"/usr/lib/jvm/jdk1.8.0_212\"\n    J2REDIR=\"/usr/lib/jvm/jdk1.8.0_212/jre\"\n    JAVA_HOME=\"/usr/lib/jvm/jdk1.8.0_212\"\n\nThe environment file before the modification:\n\n    PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games\"\nThe environment file after the modification:\n\n    PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk1.8.0_212/bin:/usr/lib/jvm/jdk1.8.0_212/jre/bin\"\n    J2SDKDIR=\"/usr/lib/jvm/jdk1.8.0_212\"\n    J2REDIR=\"/usr/lib/jvm/jdk1.8.0_212/jre\"\n    JAVA_HOME=\"/usr/lib/jvm/jdk1.8.0_212\"\n\n\n\n## what's in the `.bashrc`\n```bash\n# export JAVA_HOME\nexport JAVA_HOME=/usr/lib/jvm/jdk1.8.0_212/\n\n#  android sdk (DEPRECATED)\nexport ANDROID_HOME=/home/kb/Android/Sdk\n#  android root dir\nexport ANDROID_SDK_ROOT=/home/kb/Android\n\n#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!\nexport SDKMAN_DIR=\"/home/kb/.sdkman\"\n[[ -s \"/home/kb/.sdkman/bin/sdkman-init.sh\" ]] \u0026\u0026 source \"/home/kb/.sdkman/bin/sdkman-init.sh\"\n```\n\n## Ionic needs node.js 8 and better\n\n    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash\n\nthen \n    \n    nvm install 8\n\n## ok now we need to install some npm packages\n\n    npm i -g ionic cordova native-run @angular/cli\n\n\n## create ionic app\n\n    ionic start myApp tabs\n\n## set the android phone to development mode and connect it to the pc\n\nfrom within `/myApp` run this command \n\n \n    ionic cordova run android\n\n\n---\n\n\u003e if everything is configured correct the app should cpmpile in android studio and open in the phone. \n\n- it is possible to [use capacitor instead of cordova](https://capacitor.ionicframework.com/docs/getting-started/with-ionic/#existing-ionic-project)\n\n      ionic start myApp tabs --capacitor\n\n\n- Android studio provides very fast emulators for the latest android API's\n\n\u003e `ionic start cameraApp `\n\n- requires `npm i cordova-res`\n\n[Failed to install 'cordova-sqlite-storage': CordovaError: Using \"requireCordovaModule\" to load non-cordova module \"q\" is not supported](https://github.com/xpbrew/cordova-sqlite-storage/issues/856#issuecomment-497298630)\n\n    \u003e In my case the following sequence fixed that issue:\n    \u003e \n    \u003e Remove ios platform `ionic cordova platform rm ios`\n    \u003e Remove android platform `ionic cordova platform rm android`\n    \u003e Remove sqlite storage plugin `ionic cordova plugin rm cordova-sqlite-storage`\n    \u003e \n    \u003e Install latest sqlite storage npm package `npm i cordova-sqlite-storage@latest`\n    \u003e Install sqlite storage plugin `ionic cordova plugin add cordova-sqlite-storage`\n    \u003e Add ios platform `ionic cordova platform add ios`\n    \u003e Add android platform `ionic cordova platform add android`\n    \u003e \n    \u003e Alternatively run these commands as one line:\n    \u003e `ionic cordova platform rm ios; ionic cordova platform rm android; ionic cordova plugin rm cordova-sqlite-storage; npm i cordova-sqlite-storage@latest \u0026\u0026 ionic cordova plugin add cordova-sqlite-storage; ionic cordova platform add ios; ionic cordova platform add android`\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasparsbergs%2Fprep_ionic_on_linux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkasparsbergs%2Fprep_ionic_on_linux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasparsbergs%2Fprep_ionic_on_linux/lists"}