@@ -226,7 +226,7 @@ Et voila: a minimal, yet fully functional, chat app in about 30 lines of code. N
226226
227227* Install a JDK (if it's not installed yet):
228228* ` sudo apt-get install default-jdk `
229- * Run gradlew (which will install gradle if it's not yet installed)
229+ * Run ` ./ gradlew` (which will install gradle if it's not yet installed)
230230* Install the Android SDK tool for Linux
231231* ` wget http://dl.google.com/android/android-sdk_r22.0.5-linux.tgz `
232232* ` tar -xvzf android-sdk_r22.0.5-linux.tgz `
@@ -238,6 +238,23 @@ Et voila: a minimal, yet fully functional, chat app in about 30 lines of code. N
238238* ` android list sdk --all `
239239* ` android update sdk -u --all --filter platform-tools,android-22,extra-android-support `
240240* ` android update sdk --no-ui --filter extra `
241+ * The Android aapt tool is 32-bit only. If the machine is 64-bit, we'll need to install some compatibility libraries:
242+ * ` uname -a `
243+ * > Linux puf 3.16.0-45-generic #60 ~ 14.04.1-Ubuntu SMP Fri Jul 24 21:16:23 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
244+ * ` sudo apt-get install lib32stdc++6 `
245+ * ` sudo apt-get install lib32z1 `
246+ * Run ` ./gradlew ` to ensure it loads/parses the project
247+ * Now run a build ` ./gradlew build `
248+ * Set up for signing and uploading the aar
249+ * ` vi ~/.gradle/gradle.properties `
250+ signing.keyId=94B86DB8
251+ signing.password=PrivateKeyPassword
252+ signing.secretKeyRingFile=/path/to/gpg/secring.gpg
253+
254+ sonatypeRepo=https://oss.sonatype.org/service/local/staging/deploy/maven2/
255+ sonatypeUsername=YourSonatypeJiraUsername
256+ sonatypePassword=YourSonatypeJiraPassword
257+
241258
242259### to build/deploy
243260
0 commit comments