Replies: 1 comment
-
I moved this into a discussion, since it's not really a actionable issue. I also slightly edited your post to make the listings more readable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The below are the potential issues that can come up when building a basic java based android project with mill and its resolution instructions
Issue 1: Incorrect or older Mill version used
Root Cause: Some Android features require newer Mill versions with proper support for AndroidAppModule.
Resolution:
You switch to the correct version using:
or updated your Mill wrapper to a known working version (>= 0.11.5 or custom-built master).
(I have used Mill version 1.0.0-M1 that supports AndroidAppModule)
Issue 2: build.mill having incorrect or incomplete structure
Symptoms: Mill failed to load the build, or Android-related tasks were not available.
Root Cause: build.sc missing required Android plugin imports, or module hierarchy (e.g., AndroidAppModule) is incorrect.
Resolution:
You correct the file to include:
( Adding the sample build.mill I used in my project )
Issue 3: APK installation fails with certificate error
Symptoms:
Resolution:
You manually sign the APK using apksigner.
Issue 4: apksigner command not found
Symptoms:
zsh: command not found: apksigner
Root Cause: apksigner from Android Build Tools is not in your system PATH.
Resolution:
You added the path:
> export PATH=$PATH:$ANDROID_HOME/build-tools/35.0.0
Issue 5: Unsure of keystore password
Symptoms: Stuck during signing because keystore credentials were unclear.
Resolution: You use the default debug keystore:
Path: ~/.android/debug.keystore
Password: android
Alias: androiddebugkey
Then signed the APK:
Final Step: Successful APK install
> adb install out/app/androidUnsignedApk.dest/app.unsigned.apk
Result:
Success
Beta Was this translation helpful? Give feedback.
All reactions