2015-12-23 33 views
5

Apache Cordova - Visual Studio 2015 - Unable to build signed apkvisual studio/apache cordova - Xây dựng thành công - Nhưng không có apk nào được tạo ra

Trong liên kết ở trên, tôi đã đặt câu hỏi. Tôi không thể tạo một gói ứng dụng đã ký.
Sau đó, tôi thấy rằng tôi cần nhập mã khóa trong build.json tệp.

Sau đó, tôi gặp phải một số lỗi khác. Vì vậy, tôi cập nhật phiên bản nodejs tôi để 5.3.0
Bây giờ,

begin snippet: js hide: false --> 

language: lang-html --> 

    Build started: Project: SignedTest, Configuration: Release Android ------ 
    Your environment has been set up for using Node.js 5.3.0 (ia32) and npm. 
    Ensuring correct global installation of package from source package directory: C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\APACHECORDOVATOOLS\packages\vs-tac 
    Name from source package.json: vs-tac 
    Version from source package.json: 1.0.16 
    Package already installed globally at correct version. 
    Cordova tools 5.3.3 already installed. 
    Build Settings: 
    Build Settings: 
     platformConfigurationBldDir: E:\Visual Studio 2015\SignedTest\SignedTest\bld\Android\Release 
     platformConfigurationBinDir: E:\Visual Studio 2015\SignedTest\SignedTest\bin\Android\Release 
     buildCommand: build 
     platform: Android 
     cordovaPlatform: android 
     configuration: Release 
     cordovaConfiguration: Release 
     projectName: SignedTest 
     projectSourceDir: E:\Visual Studio 2015\SignedTest\SignedTest 
     npmInstallDir: C:\Users\Mahesh\AppData\Roaming\npm 
     buildTarget: AndroidEmulator 
     language: en-US 
     changeList.changedFilesIos: bower.json,res\icons\android\icon-72-hdpi.png,res\screens\android\screen-mdpi-landscape.png,merges\android\scripts\android2.3-jscompat.js,merges\windows\scripts\winstore-jscompat.js,res\icons\ios\icon-60.png,res\screens\ios\screen-iphone-landscape-736h.png,res\icons\windows\StoreLogo.scale-100.png,www\scripts\index.js,res\icons\android\icon-48-mdpi.png,res\icons\ios\icon-72.png,res\icons\ios\icon-76.png,plugins\cordova-plugin-whitelist\doc\ja\README.md,res\screens\ios\screen-ipad-portrait-2x.png,plugins\cordova-plugin-whitelist\NOTICE,res\screens\ios\screen-iphone-portrait-2x.png,res\icons\windows\Square71x71Logo.scale-240.png,merges\android\scripts\platformOverrides.js,plugins\cordova-plugin-whitelist\src\android\WhitelistPlugin.java,res\screens\android\screen-hdpi-portrait.png,www\css\index.css,res\icons\windows\StoreLogo.scale-240.png,plugins\cordova-plugin-whitelist\doc\it\README.md,res\screens\ios\screen-ipad-landscape.png,plugins\cordova-plugin-whitelist\doc\de\README.md,res\icons\ios\icon-60-3x.png,plugins\cordova-plugin-whitelist\whitelist.js,plugins\fetch.json,config.xml,res\screens\wp8\SplashScreenImage.jpg,res\screens\ios\screen-ipad-landscape-2x.png,plugins\cordova-plugin-whitelist\doc\pl\README.md,res\screens\ios\screen-iphone-568h-2x.png,res\icons\windows\Square150x150Logo.scale-100.png,plugins\cordova-plugin-whitelist\doc\fr\README.md,package.json,res\screens\android\screen-ldpi-landscape.png,res\icons\windows\Wide310x150Logo.scale-240.png,res\icons\windows\Wide310x150Logo.scale-100.png,res\icons\ios\icon-72-2x.png,res\icons\ios\icon-76-2x.png,res\icons\ios\icon-small.png,res\icons\windows\Square30x30Logo.scale-100.png,plugins\cordova-plugin-whitelist\plugin.xml,build.json,plugins\cordova-plugin-whitelist\doc\zh\README.md,res\icons\wp8\Background.png,www\index.html,res\icons\ios\icon-40.png,res\icons\ios\icon-60-2x.png,res\screens\android\screen-ldpi-portrait.png,plugins\cordova-plugin-whitelist\package.json,plugins\cordova-plugin-whitelist\CONTRIBUTING.md,res\native\android\ant.properties,res\icons\windows\Square310x310Logo.scale-100.png,www\scripts\platformOverrides.js,taco.json,res\icons\windows\Square150x150Logo.scale-240.png,res\icons\android\icon-36-ldpi.png,merges\windows\scripts\platformOverrides.js,res\screens\ios\screen-iphone-portrait.png,Project_Readme.html,res\screens\android\screen-xhdpi-portrait.png,res\icons\ios\icon-50-2x.png,res\icons\ios\icon-57-2x.png,res\icons\ios\icon-50.png,res\icons\ios\icon-57.png,res\icons\ios\icon-small-2x.png,plugins\cordova-plugin-whitelist\LICENSE,res\icons\windows\Square70x70Logo.scale-100.png,res\screens\windows\SplashScreen.scale-240.png,res\icons\android\icon-96-xhdpi.png,res\icons\wp8\ApplicationIcon.png,res\icons\ios\icon-40-2x.png,plugins\cordova-plugin-whitelist\doc\ko\README.md,res\screens\ios\screen-iphone-portrait-667h.png,res\screens\android\screen-hdpi-landscape.png,res\screens\windows\SplashScreenPhone.scale-240.png,res\screens\windows\SplashScreen.scale-100.png,res\screens\ios\screen-iphone-portrait-736h.png,res\screens\ios\screen-ipad-portrait.png,plugins\cordova-plugin-whitelist\RELEASENOTES.md,plugins\cordova-plugin-whitelist\doc\es\README.md,res\screens\android\screen-xhdpi-landscape.png,plugins\cordova-plugin-whitelist\README.md,res\icons\windows\Square44x44Logo.scale-240.png,res\screens\android\screen-mdpi-portrait.png 
     changeList.deletedFilesIos: 
     changeList.addedPluginsIos: 
     changeList.deletedPluginsIos: 
     changeList.addedPlugins: 
     changeList.deletedPlugins: 
    Platform android already exists 
    Copying native files from E:\Visual Studio 2015\SignedTest\SignedTest\res\native\android to platforms\android 
    Copied E:\Visual Studio 2015\SignedTest\SignedTest\res\native\android\ant.properties to platforms\android\ant.properties 
    Done copying native files to platforms\android 
    Updating plugins 
    Currently installed plugins: [email protected] 
    Currently installed dependent plugins: 
    Currently configured plugins: 
    Preparing platform: android 
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== 

Nó nói xây dựng là thành công, nhưng tôi không thấy bất kỳ apk trong bin/android/phát hành và nền tảng/android/xây dựng

+0

Bạn có thể vào thư mục nền tảng/android và chạy gradlew.bat trực tiếp không? Bạn nhận được kết quả gì? Có vẻ như chuẩn bị đã xảy ra, nhưng vì lý do nào đó, bản dựng android thực sự không hoạt động. – axemclion

Trả lời

1

Đã xảy ra sự cố tương tự. Đã làm theo:

1) In command line check the cli version: cordova -v 
2) Double-click config.xml and select "Platforms" tab. There enter the Cordova CLI version. 
Các vấn đề liên quan