Skip to content

Instantly share code, notes, and snippets.

View SilverShades02's full-sized avatar
🤗
I can do this all day.

Jyotiraditya Panda SilverShades02

🤗
I can do this all day.
View GitHub Profile
How to make Android apps without IDE from command line
A HelloWorld without Android Studio
Update: I’ve made a new course that explain how you can avoid Android Studio and Gradle, but still use IntelliJ iDE:
Hello everybody!
In this tutorial, I will show you how you can build/compile an APK (an Android app) from your java code using terminal (on Linux) without IDE or in other words without Android Studio. At the end, I will also show you a script to automate the process. In this example, I will use Android API 19 (4.4 Kitkat) to make a simple HelloWorld. I want to say that I will do this tutorial without android command which is deprecated.
1. Install Java
@SilverShades02
SilverShades02 / Jenkins setup in Ubuntu.txt
Last active April 16, 2019 15:08
Jenkins setup in Ubuntu
What is Jenkins?
Jenkins is an open source automation server written in Java. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery. (Wikipedia)
1. Required packages
sudo apt-get update
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
make a script bash.sh containing this
#!/bin/sh -e
# Access to http://<hostname>:8080/.
cat <<EOF | sudo tee /etc/apt/sources.list.d/gerritforge.list
deb [trusted=yes] http://deb.gerritforge.com/ gerrit contrib
EOF
sudo apt update -y
#!/bin/bash
#
# Script to set up Google Cloud Server
# for android ROM building
#
# Go to home dir
cd ~
# Install the dependencies
Using secure store: com.google.gerrit.server.securestore.DefaultSecureStore
[2016-05-04 18:38:32,750] [main] INFO com.google.gerrit.server.config.GerritServerConfigProvider : No /home/gerrit/./etc/gerrit.config; assuming defaults
*** Gerrit Code Review 2.12.2
***
*** Git Repositories
***