Android SDK Проблемы с Microsoft Studio 2013
У меня проблемы с распознаванием Android SDK в Microsoft Visual Studio 2013. Я поместил его в системные переменные среды и проверил, правильно ли он снова и снова. Однако иногда, когда я открываю проект apache cordova, на первой странице мне сообщают, что он установлен неправильно. Я попытался удалить и переустановить его. Мне пришлось вручную добавить путь к папке Android SDK в настройках Microsoft Visual Studio, хотя ADT_HOME был настроен в системных переменных. Не обращая внимания на ошибку на первой странице, я могу создать и развернуть приложение на "Ripple - Nexus (Galaxy)", что заставляет меня поверить, что SDK работает. Однако, когда я подключаю свой телефон и запускаю на устройстве или выбираю Android Simulator, он не работает. Вот что я получаю, когда пытаюсь запустить его на своем телефоне.
1>------ Build started: Project: IOweYou, Configuration: Debug Android ------
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript\Microsoft.TypeScript.targets(95,5): warning : The TypeScript Compiler was given no files for compilation, so it will skip compiling.
1> GeneratedJavascript=
1> C:\Users\Sudin\Documents\Visual Studio 2013\Projects\IOweYou\IOweYou>call "C:\Program Files\nodejs\"\nodevars.bat
1> Your environment has been set up for using Node.js 0.12.2 (x64) and npm.
1> ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\gl4alorm.pjd\packages\vs-mda
1> ------ Name from source package.json: vs-mda
1> ------ Version from source package.json: 0.1.75
1> ------ Current globally installed version: 0.1.75
1> ------ Package already installed globally at correct version.
1>MDAVSCLI : [javac] warning : [options] source value 1.5 is obsolete and will be removed in a future release
1>MDAVSCLI : [javac] warning : [options] target value 1.5 is obsolete and will be removed in a future release
1>MDAVSCLI : [javac] warning : [options] To suppress warnings about obsolete options, use -Xlint:-options.
2>------ Deploy started: Project: IOweYou, Configuration: Debug Android ------
2>Starting launch process C:\Program Files\nodejs\node.exe "C:\Users\Sudin\AppData\Roaming\npm\node_modules\vs-mda\emulator.js" --platform android --path "C:\Users\Sudin\Documents\Visual Studio 2013\Projects\IOweYou\IOweYou\bld\Debug" --deployTarget "device" --language en-AU --configuration debug
2> Generating config.xml from defaults for platform "android"
2> Calling plugman.prepare for platform "android"
2> Preparing android project
2> Processing configuration changes for plugins.
2> Iterating over installed plugins: []
2> Writing out cordova_plugins.js...
2> Wrote out Android application name to "IOweYou"
2> This app does not have launcher icons defined
2> Wrote out Android package name to "io.cordova.IOweYou"
2> Running command: cmd "/s /c ""C:\Users\Sudin\Documents\Visual Studio 2013\Projects\IOweYou\IOweYou\bld\Debug\platforms\android\cordova\run.bat" --nobuild --device --debug""
2> Skipping build...
2> Built the following apk(s):
2> C:\Users\Sudin\Documents\Visual Studio 2013\Projects\IOweYou\IOweYou\bld\Debug\platforms\android\ant-build\CordovaApp-debug.apk
2>C:\Users\Sudin\Documents\Visual Studio 2013\Projects\IOweYou\IOweYou\bld\Debug\platforms\android\cordova\node_modules\q\q.js:126
2>throw e;
2>^
2>ERROR: Failed to launch application on device: ERROR: Failed to install apk to device: Error executing "adb devices": 'adb' is not recognized as an internal or external command,
2>operable program or batch file.
2> Command finished with error code 1: cmd /s /c ""C:\Users\Sudin\Documents\Visual Studio 2013\Projects\IOweYou\IOweYou\bld\Debug\platforms\android\cordova\run.bat" --nobuild --device --debug"
2>
2>C:\Users\Sudin\Documents\Visual Studio 2013\Projects\IOweYou\IOweYou\bld\Debug\platforms\android\cordova\node_modules\q\q.js:126
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
Кроме того, есть ли способ экспортировать встроенный пакет в файл APK, чтобы я мог вручную установить его на свой телефон?
1 ответ
Проверьте ответ здесь, ваш путь Android SDK правильно установлен в VS?