2016-02-29 9 views
0

Мое приложение было ни при каких проблем. Но сегодня, когда я пытаюсь создать приложение для Android, я получаю эту ошибку.Cordova android build не работает в Visual Studio

ENOENT: нет такого файла или каталога, ScanDir C \ Users \ MyUser \ MyTest \ зд \ Debug \ платформа \ Android \ SRC \ COM \ Test \ MyTest

Я попытался очистить кэш Cordova и судимый и получил эту ошибку.

1>------ Rebuild All started: Project: MyTest, 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\MyUser\Desktop\MyTest>call "C:\Program Files\nodejs"\nodevars.bat 
1> Your environment has been set up for using Node.js 4.2.1 (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\3RZ4IYYB.KXY\packages\vs-mda 
1> ------ Name from source package.json: vs-mda 
1> ------ Version from source package.json: 0.1.75 
1> ------ Package not currently installed globally. 
1> ------ Installing globally from source package. This could take a few minutes... 
1> npm WARN deprecated [email protected]: graceful-fs version 3 and before will fail on newer node releases. Please update to [email protected]^4.0.0 as soon as possible. 
1> npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm 
1> npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"4.2.1","npm":"2.14.7"}) 
1> npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current: {"node":"4.2.1","npm":"2.14.7"}) 
1> npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"4.2.1","npm":"2.14.7"}) 
1> npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"4.2.1","npm":"2.14.7"}) 
1> npm WARN deprecated [email protected]: This package has been discontinued in favor of [email protected]^4.0.0. 
1> npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current: {"node":"4.2.1","npm":"2.14.7"}) 
1> npm WARN installMany normalize-package-data was bundled with [email protected], but bundled package wasn't found in unpacked tree 
1> npm WARN installMany normalize-package-data was bundled with [email protected], but bundled package wasn't found in unpacked tree 
1> C:\Users\MyUser\AppData\Roaming\npm\vs-cli -> C:\Users\MyUser\AppData\Roaming\npm\node_modules\vs-mda\vs-cli.cmd 
1> [email protected] C:\Users\MyUser\AppData\Roaming\npm\node_modules\vs-mda 
1> ├── [email protected] 
1> ├── [email protected] 
1> ├── [email protected] 
1> ├── [email protected] 
1> ├── [email protected] 
1> ├── [email protected] ([email protected], [email protected]) 
1> ├── [email protected] ([email protected], [email protected]) 
1> ├── [email protected] ([email protected], [email protected]) 
1> ├── [email protected] ([email protected]) 
1> ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 
1> ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 
1> ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) 
1> └── [email protected] ([email protected], [email protected], [email protected]) 
1> ------ npm install of [email protected] from C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\3RZ4IYYB.KXY\packages\vs-mda completed. 
1>MDAVSCLI : error : ENOENT: no such file or directory, scandir 'C:\Users\MyUser\Desktop\Test\MyTest\bld\Debug\platforms\android\src\com\Test\mytest' 
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== 

Я понятия не имею. Несколько дней назад он работал отлично. Может кто-нибудь мне помочь. Спасибо.

+0

попытки [Google Группа Кордова/PhoneGap] (https://groups.google.com/forum/#! forum/phonegap) – JesseMonroy650

ответ

0

В вашем Visual Studio Cordova проверки проекта ли ваш идентификатор имеет андроид подпись в config.xml. Если не переименуйте идентификатор и не перестройте проект.

ID = mytestapp.test - неправильно

ID = ком .mytestapp.test - правильный

+0

Привет @Skitty да, это сработало. Вы знаете причину? – Harsha

0

Привет, вы проверили папку C: \ Users \ MyUser \ Desktop \ Test \ MyTest \ bld \ Debug \ platform \ android \ src \ com \ Test \ mytest? Попробуйте обратиться сюда, проверьте права своего пользователя.

Смежные вопросы