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