有关如何将其他版本添加到托管构建计算机(Visual Studio Team Services / TACO)的任何想法吗? 我试图运行类似的东西:
$ANDROID_HOME = $ENV:ANDROID_HOME
'y' | & "$ANDROID_HOME\tools\android" update sdk --no-ui --force --filter extra-google-google_play_services
但得到了这个错误:
SDK Manager: failed to install -= Warning ! =- A folder failed to be moved. On Windows this typically means that a program is using that folder (for example Windows Explorer or your anti-virus software.)
Please momentarily deactivate your anti-virus software or close any running programs that may be
accessing the directory 'C:\java\androidsdk\android-sdk\extras\google\google_play_services'.
我原来的错误是这个,但也许有不同的方法来做到这一点:
FAILURE: Build failed with an exception. BUILD FAILED * What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find any version that matches com.google.android.gms:play-services-gcm:9.0.2+.
Versions that do not match:
8.4.0
8.3.0
8.1.0
7.8.0
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm/
https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/maven-metadata.xml
https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/
file:/C:/java/androidsdk/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
file:/C:/java/androidsdk/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/
file:/C:/java/androidsdk/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
Required by:
:android:unspecified
答案 0 :(得分:0)
使用Hosted Build Agent,您只能使用代理上已安装的软件运行构建。没有任何方法可以在其上安装任何其他软件/版本。
问:你的版本是否依赖于software以外的软件 安装在托管构建资源上?
答:不可以。然后你可以使用托管池。
如果您的构建需要使用任何其他软件,则需要deploy your own build agent.