This post records some errors I have met during set up an Android build pipeline with Travis CI.
Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;android-29 Android SDK Platform 29
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Execution failed for task ‘:app:lint’.
> Lint found errors in the project; aborting build.
Add following code into app/build.gradle to disable abort when lint error:
./gradlew lint to generate lint report and fix those errors. You can find it under /app/build/outputs/lint-results-debug.html. You also can run
./gradlew lintDebug or
./gradlew lintRelease to run lint for debug or release version specifically.