構建是OK,直到它要求調試密鑰。以下是輸出日誌的一部分:在VMware上調試使用Visual Studio 2015 Cordova的Android應用程序,並找到debug.keystore錯誤
[apkbuilder] Creating MainActivity-debug-unaligned.apk and signing it with a debug key...
1>MDAVSCLI : [apkbuilder] keytool error : java.io.FileNotFoundException: \\vmware-host\Shared Folders\.android\debug.keystore (The system cannot find the path specified)
1> [apkbuilder] Picked up _JAVA_OPTIONS: -Xmx512M
1> Command finished with error code 1: C:\FirstApp\FirstApp\platforms\android\cordova\build.bat --debug
1>ERROR building one of the platforms : error : C:\FirstApp\FirstApp\platforms\android\cordova\build.bat: Command failed with exit code 1
1> You may not have the required environment or OS to build this project
1>MDAVSCLI : error : C:\FirstApp\FirstApp\platforms\android\cordova\build.bat: Command failed with exit code 1
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
我在使用VMware的mac優勝美地上運行Windows 8.1。似乎它試圖尋找共享文件夾中的調試密鑰,並找不到它。我很無能,我該如何解決這個問題。
我檢查了環境變量,ADT_HOME,ANT_HOME,GIT_HOME,JAVA_HOME,它們都指向正確的位置。
%JAVA_HOME%\ bin也被添加到系統環境PATH中。