The command “echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a” failed and...











up vote
7
down vote

favorite












Am new with Travis alongside android development, my build is failing because of the error title I indicated, I have been reading the documentation and I tried to implement it, but still, the build is failing.



The link to my failing build is as below
https://travis-ci.org/huxaiphaer/ConvergeLevelApp



Below is the error on Travis.



$ java -Xmx32m -version

java version "1.8.0_144"

Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

$ javac -J-Xmx32m -version

javac 1.8.0_144

0.46s$ echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a

Error: Target id is not valid. Use 'android list targets' to get the target ids.

The command "echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a" failed and exited with 1 during .

Your build has been stopped.


Link to the build



Then below is my .travis.yml file



    # Disabling sudo moves build to the Container Based Infrastructure on Travis CI

language: android
jdk: oraclejdk8

env:
global:
# wait up to 10 minutes for adb to connect to emulator
- ADB_INSTALL_TIMEOUT=10

android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- tools

# The BuildTools version used by your project
- build-tools-26.0.2

# The SDK version used to compile your project
- android-26
- extra
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support

# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-22

licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

# start Android emulator

bedfore_install:
- yes | sdkmanager "platforms;android-22"
- ./gradlew build connectedCheck
- chmod +x ./gradlew

before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &

notifications:
email: true

cache:
directories:
- $HOME/.m2
- $HOME/.gradle
- $HOME/.android
- ${TRAVIS_BUILD_DIR}/gradle/caches/
- ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/


One of the solutions I implemented was to list the target ids, with the following command in the before_script :



 - android list targets


and I got the following list of them, but I don't know :



error image



This is my build.gradle file



apply plugin: 'com.android.application'
apply plugin: 'jacoco'


jacoco {
toolVersion = '0.8.0'
}

tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
}

task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) {

reports {
xml.enabled = true
html.enabled = true
}

def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
def debugTree = fileTree(dir: "$project.buildDir/intermediates/classes/debug", excludes: fileFilter)
def mainSrc = "$project.projectDir/src/main/java"

sourceDirectories = files([mainSrc])
classDirectories = files([debugTree])
executionData = fileTree(dir: project.buildDir, includes: [
'jacoco/testDebugUnitTest.exec', 'outputs/code-coverage/connected/*coverage.ec'
])
}


android {

adbOptions {
timeOutInMs 60 * 1000
}

compileSdkVersion 28
defaultConfig {
applicationId "com.levelapp.converge.convergelevelapp"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
testCoverageEnabled true
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

testOptions {
execution 'ANDROID_TEST_ORCHESTRATOR'
animationsDisabled true

unitTests {
includeAndroidResources = true
}
}
}


dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
androidTestUtil 'com.android.support.test:orchestrator:1.0.2-alpha1'
testImplementation 'junit:junit:4.12'
testImplementation 'org.robolectric:robolectric:3.7.1'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.koushikdutta.ion:ion:2.+'
implementation 'com.mikhaellopez:circularimageview:3.2.0'
}









share|improve this question
























  • Your indentation might be off as it says there is no ABI for your target device. Also try lowering your Android version to 22 or 21.
    – Pants
    Nov 23 at 15:07












  • @Pants, regarding indentation, should I add more 2/ 4 spaces?
    – Lutaaya Huzaifah Idris
    Nov 23 at 17:31















up vote
7
down vote

favorite












Am new with Travis alongside android development, my build is failing because of the error title I indicated, I have been reading the documentation and I tried to implement it, but still, the build is failing.



The link to my failing build is as below
https://travis-ci.org/huxaiphaer/ConvergeLevelApp



Below is the error on Travis.



$ java -Xmx32m -version

java version "1.8.0_144"

Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

$ javac -J-Xmx32m -version

javac 1.8.0_144

0.46s$ echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a

Error: Target id is not valid. Use 'android list targets' to get the target ids.

The command "echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a" failed and exited with 1 during .

Your build has been stopped.


Link to the build



Then below is my .travis.yml file



    # Disabling sudo moves build to the Container Based Infrastructure on Travis CI

language: android
jdk: oraclejdk8

env:
global:
# wait up to 10 minutes for adb to connect to emulator
- ADB_INSTALL_TIMEOUT=10

android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- tools

# The BuildTools version used by your project
- build-tools-26.0.2

# The SDK version used to compile your project
- android-26
- extra
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support

# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-22

licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

# start Android emulator

bedfore_install:
- yes | sdkmanager "platforms;android-22"
- ./gradlew build connectedCheck
- chmod +x ./gradlew

before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &

notifications:
email: true

cache:
directories:
- $HOME/.m2
- $HOME/.gradle
- $HOME/.android
- ${TRAVIS_BUILD_DIR}/gradle/caches/
- ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/


One of the solutions I implemented was to list the target ids, with the following command in the before_script :



 - android list targets


and I got the following list of them, but I don't know :



error image



This is my build.gradle file



apply plugin: 'com.android.application'
apply plugin: 'jacoco'


jacoco {
toolVersion = '0.8.0'
}

tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
}

task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) {

reports {
xml.enabled = true
html.enabled = true
}

def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
def debugTree = fileTree(dir: "$project.buildDir/intermediates/classes/debug", excludes: fileFilter)
def mainSrc = "$project.projectDir/src/main/java"

sourceDirectories = files([mainSrc])
classDirectories = files([debugTree])
executionData = fileTree(dir: project.buildDir, includes: [
'jacoco/testDebugUnitTest.exec', 'outputs/code-coverage/connected/*coverage.ec'
])
}


android {

adbOptions {
timeOutInMs 60 * 1000
}

compileSdkVersion 28
defaultConfig {
applicationId "com.levelapp.converge.convergelevelapp"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
testCoverageEnabled true
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

testOptions {
execution 'ANDROID_TEST_ORCHESTRATOR'
animationsDisabled true

unitTests {
includeAndroidResources = true
}
}
}


dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
androidTestUtil 'com.android.support.test:orchestrator:1.0.2-alpha1'
testImplementation 'junit:junit:4.12'
testImplementation 'org.robolectric:robolectric:3.7.1'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.koushikdutta.ion:ion:2.+'
implementation 'com.mikhaellopez:circularimageview:3.2.0'
}









share|improve this question
























  • Your indentation might be off as it says there is no ABI for your target device. Also try lowering your Android version to 22 or 21.
    – Pants
    Nov 23 at 15:07












  • @Pants, regarding indentation, should I add more 2/ 4 spaces?
    – Lutaaya Huzaifah Idris
    Nov 23 at 17:31













up vote
7
down vote

favorite









up vote
7
down vote

favorite











Am new with Travis alongside android development, my build is failing because of the error title I indicated, I have been reading the documentation and I tried to implement it, but still, the build is failing.



The link to my failing build is as below
https://travis-ci.org/huxaiphaer/ConvergeLevelApp



Below is the error on Travis.



$ java -Xmx32m -version

java version "1.8.0_144"

Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

$ javac -J-Xmx32m -version

javac 1.8.0_144

0.46s$ echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a

Error: Target id is not valid. Use 'android list targets' to get the target ids.

The command "echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a" failed and exited with 1 during .

Your build has been stopped.


Link to the build



Then below is my .travis.yml file



    # Disabling sudo moves build to the Container Based Infrastructure on Travis CI

language: android
jdk: oraclejdk8

env:
global:
# wait up to 10 minutes for adb to connect to emulator
- ADB_INSTALL_TIMEOUT=10

android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- tools

# The BuildTools version used by your project
- build-tools-26.0.2

# The SDK version used to compile your project
- android-26
- extra
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support

# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-22

licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

# start Android emulator

bedfore_install:
- yes | sdkmanager "platforms;android-22"
- ./gradlew build connectedCheck
- chmod +x ./gradlew

before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &

notifications:
email: true

cache:
directories:
- $HOME/.m2
- $HOME/.gradle
- $HOME/.android
- ${TRAVIS_BUILD_DIR}/gradle/caches/
- ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/


One of the solutions I implemented was to list the target ids, with the following command in the before_script :



 - android list targets


and I got the following list of them, but I don't know :



error image



This is my build.gradle file



apply plugin: 'com.android.application'
apply plugin: 'jacoco'


jacoco {
toolVersion = '0.8.0'
}

tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
}

task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) {

reports {
xml.enabled = true
html.enabled = true
}

def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
def debugTree = fileTree(dir: "$project.buildDir/intermediates/classes/debug", excludes: fileFilter)
def mainSrc = "$project.projectDir/src/main/java"

sourceDirectories = files([mainSrc])
classDirectories = files([debugTree])
executionData = fileTree(dir: project.buildDir, includes: [
'jacoco/testDebugUnitTest.exec', 'outputs/code-coverage/connected/*coverage.ec'
])
}


android {

adbOptions {
timeOutInMs 60 * 1000
}

compileSdkVersion 28
defaultConfig {
applicationId "com.levelapp.converge.convergelevelapp"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
testCoverageEnabled true
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

testOptions {
execution 'ANDROID_TEST_ORCHESTRATOR'
animationsDisabled true

unitTests {
includeAndroidResources = true
}
}
}


dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
androidTestUtil 'com.android.support.test:orchestrator:1.0.2-alpha1'
testImplementation 'junit:junit:4.12'
testImplementation 'org.robolectric:robolectric:3.7.1'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.koushikdutta.ion:ion:2.+'
implementation 'com.mikhaellopez:circularimageview:3.2.0'
}









share|improve this question















Am new with Travis alongside android development, my build is failing because of the error title I indicated, I have been reading the documentation and I tried to implement it, but still, the build is failing.



The link to my failing build is as below
https://travis-ci.org/huxaiphaer/ConvergeLevelApp



Below is the error on Travis.



$ java -Xmx32m -version

java version "1.8.0_144"

Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

$ javac -J-Xmx32m -version

javac 1.8.0_144

0.46s$ echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a

Error: Target id is not valid. Use 'android list targets' to get the target ids.

The command "echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a" failed and exited with 1 during .

Your build has been stopped.


Link to the build



Then below is my .travis.yml file



    # Disabling sudo moves build to the Container Based Infrastructure on Travis CI

language: android
jdk: oraclejdk8

env:
global:
# wait up to 10 minutes for adb to connect to emulator
- ADB_INSTALL_TIMEOUT=10

android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- tools

# The BuildTools version used by your project
- build-tools-26.0.2

# The SDK version used to compile your project
- android-26
- extra
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support

# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-22

licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'

# start Android emulator

bedfore_install:
- yes | sdkmanager "platforms;android-22"
- ./gradlew build connectedCheck
- chmod +x ./gradlew

before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &

notifications:
email: true

cache:
directories:
- $HOME/.m2
- $HOME/.gradle
- $HOME/.android
- ${TRAVIS_BUILD_DIR}/gradle/caches/
- ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/


One of the solutions I implemented was to list the target ids, with the following command in the before_script :



 - android list targets


and I got the following list of them, but I don't know :



error image



This is my build.gradle file



apply plugin: 'com.android.application'
apply plugin: 'jacoco'


jacoco {
toolVersion = '0.8.0'
}

tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
}

task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) {

reports {
xml.enabled = true
html.enabled = true
}

def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
def debugTree = fileTree(dir: "$project.buildDir/intermediates/classes/debug", excludes: fileFilter)
def mainSrc = "$project.projectDir/src/main/java"

sourceDirectories = files([mainSrc])
classDirectories = files([debugTree])
executionData = fileTree(dir: project.buildDir, includes: [
'jacoco/testDebugUnitTest.exec', 'outputs/code-coverage/connected/*coverage.ec'
])
}


android {

adbOptions {
timeOutInMs 60 * 1000
}

compileSdkVersion 28
defaultConfig {
applicationId "com.levelapp.converge.convergelevelapp"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
testCoverageEnabled true
}

release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

testOptions {
execution 'ANDROID_TEST_ORCHESTRATOR'
animationsDisabled true

unitTests {
includeAndroidResources = true
}
}
}


dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
androidTestUtil 'com.android.support.test:orchestrator:1.0.2-alpha1'
testImplementation 'junit:junit:4.12'
testImplementation 'org.robolectric:robolectric:3.7.1'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.koushikdutta.ion:ion:2.+'
implementation 'com.mikhaellopez:circularimageview:3.2.0'
}






java android travis-ci






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 29 at 10:00

























asked Nov 22 at 14:03









Lutaaya Huzaifah Idris

1,0192829




1,0192829












  • Your indentation might be off as it says there is no ABI for your target device. Also try lowering your Android version to 22 or 21.
    – Pants
    Nov 23 at 15:07












  • @Pants, regarding indentation, should I add more 2/ 4 spaces?
    – Lutaaya Huzaifah Idris
    Nov 23 at 17:31


















  • Your indentation might be off as it says there is no ABI for your target device. Also try lowering your Android version to 22 or 21.
    – Pants
    Nov 23 at 15:07












  • @Pants, regarding indentation, should I add more 2/ 4 spaces?
    – Lutaaya Huzaifah Idris
    Nov 23 at 17:31
















Your indentation might be off as it says there is no ABI for your target device. Also try lowering your Android version to 22 or 21.
– Pants
Nov 23 at 15:07






Your indentation might be off as it says there is no ABI for your target device. Also try lowering your Android version to 22 or 21.
– Pants
Nov 23 at 15:07














@Pants, regarding indentation, should I add more 2/ 4 spaces?
– Lutaaya Huzaifah Idris
Nov 23 at 17:31




@Pants, regarding indentation, should I add more 2/ 4 spaces?
– Lutaaya Huzaifah Idris
Nov 23 at 17:31












1 Answer
1






active

oldest

votes

















up vote
0
down vote













In your .travis.yml, before_install is misspelled. This might result in a silent non-execution of sdkmanager which would foul up processing in before_script.



# start Android emulator

-> bedfore_install:
- yes | sdkmanager "platforms;android-22"
- ./gradlew build connectedCheck
- chmod +x ./gradlew





share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53432679%2fthe-command-echo-no-android-create-avd-force-n-test-t-android-22-abi-ar%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    In your .travis.yml, before_install is misspelled. This might result in a silent non-execution of sdkmanager which would foul up processing in before_script.



    # start Android emulator

    -> bedfore_install:
    - yes | sdkmanager "platforms;android-22"
    - ./gradlew build connectedCheck
    - chmod +x ./gradlew





    share|improve this answer

























      up vote
      0
      down vote













      In your .travis.yml, before_install is misspelled. This might result in a silent non-execution of sdkmanager which would foul up processing in before_script.



      # start Android emulator

      -> bedfore_install:
      - yes | sdkmanager "platforms;android-22"
      - ./gradlew build connectedCheck
      - chmod +x ./gradlew





      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        In your .travis.yml, before_install is misspelled. This might result in a silent non-execution of sdkmanager which would foul up processing in before_script.



        # start Android emulator

        -> bedfore_install:
        - yes | sdkmanager "platforms;android-22"
        - ./gradlew build connectedCheck
        - chmod +x ./gradlew





        share|improve this answer












        In your .travis.yml, before_install is misspelled. This might result in a silent non-execution of sdkmanager which would foul up processing in before_script.



        # start Android emulator

        -> bedfore_install:
        - yes | sdkmanager "platforms;android-22"
        - ./gradlew build connectedCheck
        - chmod +x ./gradlew






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 5 at 17:22









        Jon Sampson

        78311022




        78311022






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53432679%2fthe-command-echo-no-android-create-avd-force-n-test-t-android-22-abi-ar%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            What visual should I use to simply compare current year value vs last year in Power BI desktop

            How to ignore python UserWarning in pytest?

            Alexandru Averescu