android


Travis for android licence issues


I am trying to implement CI for one of my projects and whenever travis runs it ends up with following error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 25.0.1, Android SDK Platform 25].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
I have gone through this question, this example and some others, but I can't figure out what I'm doing wrong.
language: android
jdk:
- oraclejdk8
sudo: true
before_install:
- chmod +x gradlew
env:
global:
- ANDROID_API_LEVEL=23
- EMULATOR_API_LEVEL=21
- ANDROID_BUILD_TOOLS_VERSION=23.0.1
- ANDROID_ABI=armeabi-v7a
- ANDROID_TAG=google_apis
- ADB_INSTALL_TIMEOUT=8 # minutes (2 minutes by default)
android:
components:
- tools
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
- android-$EMULATOR_API_LEVEL
- extra
- add-on
- extra-google-m2repository
- extra-android-m2repository
# Google Play Services
- extra-google-google_play_services
# Support library
- extra-android-support
- addon-google_apis-google-$ANDROID_API_LEVEL
- addon-google_apis-google-$EMULATOR_API_LEVEL
- sys-img-armeabi-v7a-google_apis-$ANDROID_API_LEVEL
- sys-img-armeabi-v7a-google_apis-$EMULATOR_API_LEVEL
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'intel-android-extra-license.+'
before_script:
- echo no | android create avd --force -n test -t "android-23" --abi $ANDROID_ABI --tag $ANDROID_TAG
- emulator -avd test -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
In case anyone needed more detailed info about the project please see the github page.
OK, so a little bit more coffee to make my googling more efficient solved the issue. The problem was described here in detail. I had to add following lines to my code (still don't understand what do I need this 25 for, but at least it works):
- build-tools-25.0.1
- android-25

Related Links

Libgdx Application cannot be resolved. The hierarchy of type SuperJumper is inconsistent
Can I create my UI fragment in my activity's onStart()?
android - best way to place objects / design an activity
Android Studio add padding to the icon ic_launcher.png
Best way to store secret keys in Android applications
Fragment Default View Wont Change
How to get error msg in videoView in android?
Circular TextView with boundary
Android FaceBook newMyFriendsRequest Returns EMPTY Friends List
If I create an android app, will it work on windows 7 chrome browser?
Is it mandatory to update my app with new Ad unit ID after moving form legacy Admob to new Admob account
How can I wait for button click in android?
How to make a camera panning js script in Unity3d
NFC HID MIFARE card reading
how to access Activity's instance variable from Service
J. Feinstein Sliding Menu check if open

Categories

HOME
android
url-redirection
search
ecmascript-6
formal-languages
ns-3
numbers
socket.io
access
telegram-bot
square
trac
project-intu
gkturnbasedmatch
code-generation
scsi
dreamweaver
connector
ag
pagespeed
tosca
expressionengine3
licensing
angular-translate
quantlib
alm
xbox
record
android-sugarorm
hreflang
joomla2.5
hunspell
apiary.io
watchface
apriori
naming
claims
avcapturedevice
signal-strength
rfc3339
ntvs
serde
robomongo
datamaps
manova
lightning
payara-micro
oozie-coordinator
structuremap4
jboss-tools
scaffolding
swizzling
google-query-language
nio2
np-spring
user-management
spring-retry
forwarding
google-books
ember-cli-rails
viola-jones
dnssec
snackbar
zend-currency
shopizer
execve
paw
winginx
ie8-compatibility-mode
breakout
jeromq
mvc-editor-templates
cnf
jquery-1.9
http-status-code-410
sqlclr
pdfviewer
mkv
saleslogix
wcf-configuration
expression-blend-4
jquery-tools
mysql-error-1205
http-daemon
inline-formset
cac
objective-j
blender-2.49
strtod
feasibility
sqlobject
flvplayback
information-management
wspbuilder

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App