Is there a way to automate the android sdk installation?

后端 未结 12 2322
鱼传尺愫
鱼传尺愫 2020-11-27 08:41

Now I have to download and install the Android SDK and AVD Manager, and then install the APIs, tools through the UI. Is there a way to automate this process?

12条回答
  •  时光取名叫无心
    2020-11-27 09:38

    This didn't work for me...

    echo "y" | android ....
    

    so I ended up here:

    expect -c '
    set timeout -1   ;
    spawn sudo /opt/android-sdk/tools/android update sdk -u; 
    expect { 
        "Do you accept the license" { exp_send "y\r" ; exp_continue }
        eof
    }
    '
    

提交回复
热议问题