2015-08-18 31 views
0

構建是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中。

回答

0

我想通了。問題是我無法在\ vmware-host \ Shared Folders下創建文件夾。由於Manifest Cache目錄也指向\ vmware-host \ Shared Folders,因此在運行Android SDK Manager來獲取Android存儲庫時,這也給我帶來了困難。

解決方案是添加一個新的環境變量。 變量名:ANDROID_SDK_HOME 變量值:C:\用戶>用戶名<

這是後是有很大幫助。 Possible to change where Android Virtual Devices are saved?

不要忘記在更改後重新啓動計算機。

相關問題