Android Jenkins日志显示“ settings_apk-debug.apk:没有这样的文件或目录”

时间:2019-09-24 10:55:45

标签: jenkins appium

我能够使用android Gradle任务从Windows终端运行自动化,但是当我使用jenkins终端尝试相同操作时,它显示以下错误:

<?php
    /* 
        start the session - do NOT call this within the 
        body of the HTML unless you are using output 
        buffering 
    */
    session_start();

    $svar='boodschappen';
    $field='boodschap';


    /* initialise the empty session variable */
    if( !isset( $_SESSION[ $svar ] ) ){
        $_SESSION[ $svar ]=array();
    }


    /* Process form submissions, add new items to array */
    if( $_SERVER['REQUEST_METHOD']=='POST' && !empty( $_POST[ $field ] ) ){

        /* allow a single item or a space separated series of items */
        $items=array_unique( explode( ' ', $_POST[ $field ] ) );

        /* add new item to session if it does not already exist in the array */
        foreach( $items as $item ){
            if( !in_array( $item, $_SESSION[ $svar ] ) ) $_SESSION[ $svar ][]=$item;
        }
    }


    /* process ajax POST requests to remove item from session */
    if( $_SERVER['REQUEST_METHOD']=='POST' && isset( $_POST['action'], $_POST['item'] ) ){
        ob_clean();

        /* if the item exists in the array, find it's position and remove it */
        if( $_POST['action']=='delete' && in_array( trim( $_POST['item'] ), $_SESSION[ $svar ] ) ){

            $pos=array_search( trim( $_POST['item'] ), $_SESSION[ $svar ] );
            array_splice( $_SESSION[ $svar ], $pos );
        }

        /* send item name back to javascript callback which will remove it from the list */
        exit( trim( $_POST['item'] ) );
    }
?>
<!DOCTYPE html>
<html>
    <head>
        <title>Opdracht 5</title>
        <style>
            body *{display:block}
            li,a{color:blue}
            input{padding:0.5rem;}
            [type='text']{clear:both;}
            [type='submit']{margin:1rem 0 0 0;}
        </style>
        <script>

            document.addEventListener('DOMContentLoaded',()=>{
                const ingredients=document.getElementById('ingredients');

                const ajax=function( data, callback ){
                    let xhr=new XMLHttpRequest();
                    xhr.onload=function(){
                        if( this.status==200 && this.readyState==4 )callback( this.response )
                    };
                    xhr.open( 'POST', location.href, true );
                    xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
                    xhr.send( data );
                };

                const callback=function(r){
                    ingredients.removeChild( ingredients.querySelector('li[ title="'+r+'" ]') );
                    if( ingredients.childElementCount==0 )console.info('List cleared');
                };

                ingredients.addEventListener('click',function(e){
                    /* use `event delegation` to register clicks to child elements */
                    if( e.target != e.currentTarget && e.target.tagName=='A' ){
                        ajax( 'action=delete&item='+e.target.innerText, callback );
                    }
                });
            });
        </script>
    </head>
    <body>
        <form method='post'>
            <input type='text' name='boodschap' />
            <input type='submit' />
        </form>
        <ul id='ingredients'>
            <?php
                if( !empty( $_SESSION[ $svar ] ) ){
                    foreach( $_SESSION[ $svar ] as $boodschap ) {
                        printf('
                        <li title="%1$s"><a href="#">%1$s</a></li>', $boodschap );
                    }
                }
            ?>
        </ul>
    </body>
</html>

当我转到路径时,我可以看到 settings_apk-debug.a pk存在,但是当我们尝试通过adb安装时,它会显示“ No such file or directory'; Code:”

可以帮我做些预算吗?

0 个答案:

没有答案