Skip to content

Instantly share code, notes, and snippets.

@mrlnc
Last active October 28, 2021 12:06
Show Gist options
  • Save mrlnc/b5adfd9a6264544e895422564f238135 to your computer and use it in GitHub Desktop.
Save mrlnc/b5adfd9a6264544e895422564f238135 to your computer and use it in GitHub Desktop.
Building "Silent Ping SMS" Android App

Building the app "Silent Ping SMS".

Install JDK and gradle.

apt install gradle openjdk-8-jdk 

The README says: ./gradle clean installDebug, which fails:

A problem occurred configuring project ':app'.
> java.lang.NullPointerException (no error message)

What that seems to mean:

  • Java couldn't be located
  • your JDK version is wrong

🤷

Make sure you got openjdk-8-jdk and add the following line to gradle.properties:

org.gradle.java.home=/usr/lib/jvm/java-1.8.0-openjdk-amd64

Then, don't call the ./gradlew wrapper from the repository but run this:

gradle wrapper --gradle-version 4.6 clean build

(or installDebug for installation)

You'll need to self-sign the APK prior installation:

keytool -genkey -v -keystore my-release-key.keystore -alias android-key -keyalg RSA -keysize 2048 -validity 10000
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app/build/outputs/apk/release/app-release-unsigned.apk android-key

Installation:

adb install app/build/outputs/apk/release/app-release-unsigned.apk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment