-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android SDK install CI "osx-install-android-sdk-automated" fails regularly, further install issues #1059
Comments
Build Tool NotesIt appears that we do install |
I haven't been able to find where the packages are being kept. If nothing else, it seems that we may be able to manually set the path with sdkmanager (link). When inspecting my environment variables (
Checking for any variation of |
we should fix the prereq SDK CI before trying to dig deeper into what is wrong (go from working to working). From the comment above, the line just below HAXM is patcher. I would try removing patcher (unless it is required), getting the CI to work and then running the fixed scripts on your laptop. Again, the goal of the CI is to maintain a working version of the scripts. |
Changed merged in 1136, closing Issue! |
Issues with Android SDK Install
Personal Build Issues
I've been working on building the android
.apk
. I've been able to perform the following steps successfully:bash setup/prereq_android_sdk_install.sh
installs successfully. When running this, I receive the following error:Warning: Failed to find package 'patcher;v4'
$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --list
and comparing it to setup/android_sdk_packages, it seems that the only package missing is patcherbash setup/setup_android_native.sh
andsource setup/activate_native.sh
without issue.npm run build-prod-android
ornpx cordova build android
result in the following error:CI Failure
osx-install-android-sdk-automated
CI to better understand this issue, I discovered this GitHub Action has been failing for the past four months (link).cmdline-tools/
. The CI has succeeded in the past, though I do not know what was changed between the success and failure -- and, because those actions were run months ago, we no longer have the logs.Observations
patcher
package is not related to the CI failure. The failure seems to be a lack of utilities being installed, not a missing package.patcher
is what's causing my build issue. This line in the error:.bash_profile
, and sourcing the profile accordingly:getAndroidSdkDir()
. This function (if I understand correctly) checks for $ANDROID_HOME (or $ANDROID_SDK_ROOT), or an equivalent SDK home, and then checks to confirm that thebuild_tools
utilities are installed. This is the connection between the CI Failure and my build issuesConclusion, Next Steps
It appears to me that, when running
bash setup/prereq_android_sdk_install.sh
, we are failing to install the build tools. This does not affect our actual build CI (link), because theandroid-automated-sdk-install
CI creates a separate temporary directory that it installs into, which does not overwrite the preexisting, successful install. This would also explain why:prereq
script before the CI's "4 month failure point" have not run into this issue.With all of this information in mind, it appears that
bash setup/prereq_android_sdk_install.sh
isfailing to installincorrectly several components that are vital to the build process.As mentioned above, I believe this is because we only curl for the cmdline-tools ( link ).It appears thatsdkmanager
is installing packages, including the build tools, in a location other than the expected$ANDROID_HOME
. Once I have a fix written, I'll run some tests and update this thread with further information.EDIT: Corrected the final thoughts on the error to reflect the actual cause, as mentioned below.
The text was updated successfully, but these errors were encountered: