我一直在尝试在Linux Mint 18中使用cordova并与ubuntu兼容。到目前为止,我可以安装everthing并更新任何必要的东西,但我有以下问题。
在我输入“ sdkmanager list ”的命令行中出现:
~/Documents/cordovaApps/hello $ sdkmanager list
Warning: Observed package id 'build-tools;27.0.3' in inconsistent location '/home/felipe/Android/Sdk/build-tools/27.0.3' (Expected '/home/felipe/build-tools/27.0.3')
Warning: Observed package id 'emulator' in inconsistent location '/home/felipe/Android/Sdk/emulator' (Expected '/home/felipe/emulator')
Warning: Observed package id 'extras;android;m2repository' in inconsistent location '/home/felipe/Android/Sdk/extras/android/m2repository' (Expected '/home/felipe/extras/android/m2repository')
Warning: Observed package id 'extras;google;m2repository' in inconsistent location '/home/felipe/Android/Sdk/extras/google/m2repository' (Expected '/home/felipe/extras/google/m2repository')
Warning: Observed package id 'patcher;v4' in inconsistent location '/home/felipe/Android/Sdk/patcher/v4' (Expected '/home/felipe/patcher/v4')
Warning: Observed package id 'platform-tools' in inconsistent location '/home/felipe/Android/Sdk/platform-tools' (Expected '/home/felipe/platform-tools')
Warning: Observed package id 'platforms;android-26' in inconsistent location '/home/felipe/Android/Sdk/platforms/android-26' (Expected '/home/felipe/platforms/android-26')
Warning: Observed package id 'platforms;android-27' in inconsistent location '/home/felipe/Android/Sdk/platforms/android-27' (Expected '/home/felipe/platforms/android-27')
Warning: Observed package id 'sources;android-27' in inconsistent location '/home/felipe/Android/Sdk/sources/android-27' (Expected '/home/felipe/sources/android-27')
Warning: Observed package id 'tools' in inconsistent location '/home/felipe/Android/Sdk/tools' (Expected '/home/felipe/tools')
Warning: Observed package id 'build-tools;27.0.3' in inconsistent location '/home/felipe/Android/Sdk/build-tools/27.0.3' (Expected '/home/felipe/build-tools/27.0.3')
Warning: Observed package id 'emulator' in inconsistent location '/home/felipe/Android/Sdk/emulator' (Expected '/home/felipe/emulator')
Warning: Observed package id 'extras;android;m2repository' in inconsistent location '/home/felipe/Android/Sdk/extras/android/m2repository' (Expected '/home/felipe/extras/android/m2repository')
Warning: Observed package id 'extras;google;m2repository' in inconsistent location '/home/felipe/Android/Sdk/extras/google/m2repository' (Expected '/home/felipe/extras/google/m2repository')
Warning: Observed package id 'patcher;v4' in inconsistent location '/home/felipe/Android/Sdk/patcher/v4' (Expected '/home/felipe/patcher/v4')
Warning: Observed package id 'platform-tools' in inconsistent location '/home/felipe/Android/Sdk/platform-tools' (Expected '/home/felipe/platform-tools')
Warning: Observed package id 'platforms;android-26' in inconsistent location '/home/felipe/Android/Sdk/platforms/android-26' (Expected '/home/felipe/platforms/android-26')
Warning: Observed package id 'platforms;android-27' in inconsistent location '/home/felipe/Android/Sdk/platforms/android-27' (Expected '/home/felipe/platforms/android-27')
Warning: Observed package id 'sources;android-27' in inconsistent location '/home/felipe/Android/Sdk/sources/android-27' (Expected '/home/felipe/sources/android-27')
Warning: Observed package id 'tools' in inconsistent location '/home/felipe/Android/Sdk/tools' (Expected '/home/felipe/tools')
**Warning: Failed to find package list**
现在,当我尝试创建一个Android虚拟设备时,会发生这种情况:
avdmanager create avd --force --name testAVD --abi google_apis/x86_64 --package 'system-images;android-26;google_apis;x86_64'
Warning: Observed package id 'build-tools;27.0.3' in inconsistent location '/home/felipe/Android/Sdk/build-tools/27.0.3' (Expected '/home/felipe/build-tools/27.0.3')
Warning: Observed package id 'emulator' in inconsistent location '/home/felipe/Android/Sdk/emulator' (Expected '/home/felipe/emulator')
Warning: Observed package id 'extras;android;m2repository' in inconsistent location '/home/felipe/Android/Sdk/extras/android/m2repository' (Expected '/home/felipe/extras/android/m2repository')
Warning: Observed package id 'extras;google;m2repository' in inconsistent location '/home/felipe/Android/Sdk/extras/google/m2repository' (Expected '/home/felipe/extras/google/m2repository')
Warning: Observed package id 'patcher;v4' in inconsistent location '/home/felipe/Android/Sdk/patcher/v4' (Expected '/home/felipe/patcher/v4')
Warning: Observed package id 'platform-tools' in inconsistent location '/home/felipe/Android/Sdk/platform-tools' (Expected '/home/felipe/platform-tools')
Warning: Observed package id 'platforms;android-26' in inconsistent location '/home/felipe/Android/Sdk/platforms/android-26' (Expected '/home/felipe/platforms/android-26')
Warning: Observed package id 'platforms;android-27' in inconsistent location '/home/felipe/Android/Sdk/platforms/android-27' (Expected '/home/felipe/platforms/android-27')
Warning: Observed package id 'sources;android-27' in inconsistent location '/home/felipe/Android/Sdk/sources/android-27' (Expected '/home/felipe/sources/android-27')
Warning: Observed package id 'tools' in inconsistent location '/home/felipe/Android/Sdk/tools' (Expected '/home/felipe/tools')
Error: Package path is not valid. Valid system image paths are:ository...
null
有什么方法可以解决这个问题吗?