ZIP the licenses and upload to Bitrise.io (using the Generic File Storage feature).Using a ZIP file ( Don’t use this method unless necessary, it’s way more complicated to get right than it seems!):.You can find more information and alternative solutions here:, but the solution above is the current official solution (the “learn how to transfer the license agreements from one workstation to another” message in the log is not a Bitrise error/log, it comes from gradle and the Android tools).Īlternatively, if you don’t want to store the licenses in your repository (although that’s probably the best solution), you can also: That’s all, this script copies the licenses from the android-licenses (from your repository) into the system’s Android SDK Home path under licenses directory. android-licenses/ "$ANDROID_HOME/licenses/" Then in your Workflow on bitrise.io copy the licenses to the right location using a Script step.Īdd the Script step right after the Git Clone step (that’s when your code is available on the build virtual machine), with the content: #!/bin/bash.Create an android-licenses directory in the root directory of your git repository, and copy the license files into this directory from your Mac/PC.To the Android Sdk Home directory of the machine where you now want to build your projects. ![]() ![]() You can export your licenses by copying the accepted licenses folder from the Android Sdk Homeįolder (this should be located at /licenses) of your current workstation, If you have accepted the license agreements on one workstation, but wish to build your projects on a different one, The official solution: You can find more info at the link printed in the log ( ), but in short this can be done by:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |