gpt4 book ai didi

java - Android sdk-manager 与 php 冲突?

转载 作者:行者123 更新时间:2023-12-02 02:13:04 25 4
gpt4 key购买 nike

我需要在 Godot 游戏引擎中导出到 android,因此我安装了 android sdk(仅限命令行工具)并运行此命令:

sdkmanager "platform-tools" "platforms;android-26"

这就是发生的事情:

D:\android-sdk\bin>sdkmanager "platform-tools" "platforms;android-26"
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\web\asgard\vendor\mockery\mockery\package.xml
Warning: Invalid package.xml found at D:\storage\dev\web\asgard\vendor\mockery\mockery\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\web\coaster\vendor\mockery\mockery\package.xml
Warning: Invalid package.xml found at D:\storage\dev\web\coaster\vendor\mockery\mockery\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\123friluft_old\vendor\phpunit\php-text-template\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\123friluft_old\vendor\phpunit\php-text-template\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\123friluft_old\vendor\phpunit\php-timer\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\123friluft_old\vendor\phpunit\php-timer\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\123friluft_old\vendor\sebastian\version\build\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\123friluft_old\vendor\sebastian\version\build\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\arakash\plugins\rainlab\googleanalytics\vendor\firebase\php-jwt\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\arakash\plugins\rainlab\googleanalytics\vendor\firebase\php-jwt\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\bitshape\vendor\phpunit\php-file-iterator\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\bitshape\vendor\phpunit\php-file-iterator\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\bitshape\vendor\phpunit\php-text-template\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\bitshape\vendor\phpunit\php-text-template\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\bitshape\vendor\phpunit\php-timer\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\bitshape\vendor\phpunit\php-timer\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\bitshape\vendor\sebastian\version\build\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\bitshape\vendor\sebastian\version\build\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\fluid\vendor\phpunit\php-text-template\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\fluid\vendor\phpunit\php-text-template\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\fluid\vendor\phpunit\php-timer\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\fluid\vendor\phpunit\php-timer\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\fluid\vendor\sebastian\version\build\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\fluid\vendor\sebastian\version\build\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\gaus\vendor\mockery\mockery\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\gaus\vendor\mockery\mockery\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\gentlefox.old\vendor\phpunit\php-file-iterator\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\gentlefox.old\vendor\phpunit\php-file-iterator\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\gentlefox.old\vendor\phpunit\php-text-template\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\gentlefox.old\vendor\phpunit\php-text-template\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\gentlefox.old\vendor\phpunit\php-timer\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\gentlefox.old\vendor\phpunit\php-timer\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\gentlefox.old\vendor\sebastian\version\build\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\gentlefox.old\vendor\sebastian\version\build\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\gentlefox\vendor\mockery\mockery\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\gentlefox\vendor\mockery\mockery\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\gentler\vendor\phpunit\php-text-template\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\gentler\vendor\phpunit\php-text-template\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\gentler\vendor\phpunit\php-timer\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\gentler\vendor\phpunit\php-timer\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\gentler\vendor\sebastian\version\build\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\gentler\vendor\sebastian\version\build\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\highpulse\vendor\phpunit\php-file-iterator\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\highpulse\vendor\phpunit\php-file-iterator\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\highpulse\vendor\phpunit\php-text-template\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\highpulse\vendor\phpunit\php-text-template\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\highpulse\vendor\phpunit\php-timer\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\highpulse\vendor\phpunit\php-timer\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\highpulse\vendor\sebastian\version\build\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\highpulse\vendor\sebastian\version\build\package.xml and failed to parse using fallback.
Warning: cvc-elt.1: Cannot find the declaration of element 'package'.
Warning: unexpected element (uri:"http://pear.php.net/dtd/package-2.0", local:"package"). Expected elements are <{http://schemas.android.com/repository/android/common/01}repository>,<{http://schemas.android.com/repository/android/generic/01}repository>,<{http://schemas.android.com/sdk/android/repo/addon2/01}sdk-addon>,<{http://schemas.android.com/sdk/android/repo/repository2/01}sdk-repository>,<{http://schemas.android.com/sdk/android/repo/sys-img2/01}sdk-sys-img>
Warning: Found corrupted package.xml at D:\storage\dev\www\smakenavdamp\vendor\mockery\mockery\package.xml
Warning: Invalid package.xml found at D:\storage\dev\www\smakenavdamp\vendor\mockery\mockery\package.xml and failed to parse using fallback.

世界上到底发生了什么? :S

最佳答案

首先,请确保按照本文中的答案清除任何困惑/错误的配置:

How to completely uninstall Android Studio from windows(v10)?

还要记住,sdk 应该位于它自己的“android”目录中。换句话说,将 sdk 放在 D:\android-sdk 等路径中是有问题的,因为它需要上面的目录。因此,请将 sdk 放在像 D:\android\sdk 这样的目录中。

关于java - Android sdk-manager 与 php 冲突?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49680396/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com