The way to build latest Android APK in MacOS Android Studio #46249
linonetwo
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Always fails? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Android build always fails, so we should build it by our self.
Open the correct folder
Open the
android
folder in the Android Studioinstall things
Click the elephant icon
set versionCode
First, you can change
android/app/build.gradle
, so you can make sure you won't encounter "can not downgrade your app" when installing (see https://developer.android.com/studio/publish/versioning for details)The number here should change to the latest on in https://cataclysmdda.org/experimental/ , for now, it is 11281
Set versionName
In
android/gradle.properties
, set a friendly number for your app's version. So you can see the version number when you install your .apkBuild
This can be very slow, on my high-end MacOS, it still takes 15min, on my friend's small windows laptop, it takes a whole night.
Change signing
It will say Signing is different from existed app upon installing, sadly we can't change our signing to the same as the official one download from https://cataclysmdda.org/experimental/ or http://dev.narc.ro/cataclysm/jenkins-latest/Android/Tiles/
So we can't just overwrite install on an existing CDDA app. We have to
We can sync save between two apps using SyncThing, as it can sync data between several folders. In this way, we can use our won built app if the official one is not released for a long time, and use the official one if it gets released.
Beta Was this translation helpful? Give feedback.
All reactions