Cordovaプロジェクトをビルドするたびに、ビルドプロセスが約8分間スタックします。
これが発生したときのログの最後の行は次のとおりです:Incremental Java compilation is an incubating feature.
誰かがこれが以前に起こったのを見たことがありますか?
Visual Studio 2015を使用しており、Windows10ビルド14393.10で実行しています。
私の質問は、なぜビルドプロセスに時間がかかりすぎるのかということです。
更新:
ビルドログは次のとおりです。
1>------ Build started: Project: bazimTest, Configuration: Release Android ------
1> Your environment has been set up for using Node.js 4.4.7 (x64) and npm.
1> ------ 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
1> ------ Name from source package.json: vs-tac
1> ------ Version from source package.json: 1.0.42
1> ------ Package already installed globally at correct version.
1> ------ Cordova tools 6.3.0 already installed.
1> ------ Build Settings:
1> ------ Build Settings:
1> ------ platformConfigurationBldDir: C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\bld\Android\Release
1> ------ platformConfigurationBinDir: C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\bin\Android\Release
1> ------ buildCommand: build
1> ------ platform: Android
1> ------ cordovaPlatform: Android
1> ------ configuration: Release
1> ------ cordovaConfiguration: Release
1> ------ projectName: bazimTest
1> ------ projectSourceDir: C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest
1> ------ npmInstallDir: C:\Users\poury\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9
1> ------ buildTarget: AndroidEmulator
1> ------ language: en-US
1> ------ Platform Android already exists
1> ------ Copying native files from C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\res\native\Android to platforms\Android
1> ------ Done copying native files to platforms\Android
1> ------ Updating plugins
1> ------ Currently installed plugins: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
1> ------ Currently installed dependent plugins: [email protected],[email protected]
1> ------ Currently configured plugins:
1> ------ Preparing platform: Android
1> No scripts found for hook "before_build".
1> No scripts found for hook "before_prepare".
1> Checking config.xml for saved platforms that haven't been added to the project
1> Checking for any plugins added to the project that have not been installed in Android platform
1> No differences found between plugins added to project and installed in Android platform. Continuing...
1> Generating platform-specific config.xml from defaults for Android at C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\platforms\Android\res\xml\config.xml
1> Merging project's config.xml into platform-specific Android config.xml
1> Found "merges/Android" folder. Copying its contents into the Android project.
1> Merging and updating files from [www, platforms\Android\platform_www, merges\Android] to platforms\Android\assets\www
1> delete platforms\Android\assets\www\VSBuildInfo.xml (no source)
1> Wrote out Android application name "bazimTest" to C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\platforms\Android\res\values\strings.xml
1> Android-versionCode not found in config.xml. Generating a code based on version in config.xml (1.0.0): 10000
1> Wrote out Android package name "io.cordova.myapp972cd0" to C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\platforms\Android\src\io\cordova\myapp972cd0\MainActivity.Java
1> Updating icons at platforms\Android\res
1> Updating splash screens at platforms\Android\res
1> Prepared Android project successfully
1> No scripts found for hook "after_prepare".
1> Checking config.xml for saved plugins that haven't been added to the project
1> ------ Copied C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\bin\Android\Release\VSBuildInfo.xml to platforms\Android\assets\www\VSBuildInfo.xml
1> ------ Building platform: Android
1> Release
1> ------ Build configuration options: --release
1> No scripts found for hook "before_compile".
1> Android_HOME=C:\Android_SDKs
1> Java_HOME=C:\Program Files\Java\jdk1.8.0_92
1> Reading build config file: C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\build.json
1>MSBUILD : cordova-build warning : Warning: 'keystore' and 'alias' need to be specified to generate a signed archive.
1>MDAVSCLI : warning : 'keystore' and 'alias' need to be specified to generate a signed archive.
1> Running command: cmd "/s /c ""C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\platforms\Android\gradlew.bat" cdvBuildRelease -b "C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\platforms\Android\build.gradle" -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true""
1> Starting a new Gradle Daemon for this build (subsequent builds will be faster).
1> Incremental Java compilation is an incubating feature.
1> :preBuild UP-TO-DATE
1> :preReleaseBuild UP-TO-DATE
1> :checkReleaseManifest
1> :CordovaLib:preBuild UP-TO-DATE
1> :CordovaLib:preReleaseBuild UP-TO-DATE
1> :CordovaLib:compileReleaseNdk UP-TO-DATE
1> :CordovaLib:compileLint
1> :CordovaLib:copyReleaseLint UP-TO-DATE
1> :CordovaLib:mergeReleaseProguardFiles UP-TO-DATE
1> :CordovaLib:packageReleaseRenderscript UP-TO-DATE
1> :CordovaLib:checkReleaseManifest
1> :CordovaLib:prepareReleaseDependencies
1> :CordovaLib:compileReleaseRenderscript UP-TO-DATE
1> :CordovaLib:generateReleaseResValues UP-TO-DATE
1> :CordovaLib:generateReleaseResources UP-TO-DATE
1> :CordovaLib:packageReleaseResources UP-TO-DATE
1> :CordovaLib:compileReleaseAidl UP-TO-DATE
1> :CordovaLib:generateReleaseBuildConfig UP-TO-DATE
1> :CordovaLib:mergeReleaseShaders UP-TO-DATE
1> :CordovaLib:compileReleaseShaders UP-TO-DATE
1> :CordovaLib:generateReleaseAssets UP-TO-DATE
1> :CordovaLib:mergeReleaseAssets UP-TO-DATE
1> :CordovaLib:processReleaseManifest UP-TO-DATE
1> :CordovaLib:processReleaseResources UP-TO-DATE
1> :CordovaLib:generateReleaseSources UP-TO-DATE
1> :CordovaLib:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
1> :CordovaLib:compileReleaseJavaWithJavac UP-TO-DATE
1> :CordovaLib:processReleaseJavaRes UP-TO-DATE
1> :CordovaLib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
1> :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
1> :CordovaLib:mergeReleaseJniLibFolders UP-TO-DATE
1> :CordovaLib:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE
1> :CordovaLib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE
1> :CordovaLib:bundleRelease UP-TO-DATE
1> :prepareAndroidCordovaLibUnspecifiedReleaseLibrary
1> :preDebugBuild UP-TO-DATE
1> :CordovaLib:preDebugBuild UP-TO-DATE
1> :CordovaLib:compileDebugNdk UP-TO-DATE
1> :CordovaLib:copyDebugLint UP-TO-DATE
1> :CordovaLib:mergeDebugProguardFiles UP-TO-DATE
1> :CordovaLib:packageDebugRenderscript UP-TO-DATE
1> :CordovaLib:checkDebugManifest
1> :CordovaLib:prepareDebugDependencies
1> :CordovaLib:compileDebugRenderscript UP-TO-DATE
1> :CordovaLib:generateDebugResValues UP-TO-DATE
1> :CordovaLib:generateDebugResources UP-TO-DATE
1> :CordovaLib:packageDebugResources UP-TO-DATE
1> :CordovaLib:compileDebugAidl UP-TO-DATE
1> :CordovaLib:generateDebugBuildConfig UP-TO-DATE
1> :CordovaLib:mergeDebugShaders UP-TO-DATE
1> :CordovaLib:compileDebugShaders UP-TO-DATE
1> :CordovaLib:generateDebugAssets UP-TO-DATE
1> :CordovaLib:mergeDebugAssets UP-TO-DATE
1> :CordovaLib:processDebugManifest UP-TO-DATE
1> :CordovaLib:processDebugResources UP-TO-DATE
1> :CordovaLib:generateDebugSources UP-TO-DATE
1> :CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
1> :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
1> :CordovaLib:processDebugJavaRes UP-TO-DATE
1> :CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
1> :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
1> :CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
1> :CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
1> :CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
1> :CordovaLib:bundleDebug UP-TO-DATE
1> :prepareComAndroidSupportSupportV42411Library UP-TO-DATE
1> :prepareReleaseDependencies
1> :compileReleaseAidl
1> :compileReleaseRenderscript
1> :generateReleaseBuildConfig
1> :mergeReleaseShaders
1> :compileReleaseShaders
1> :generateReleaseAssets
1> :mergeReleaseAssets
1> :generateReleaseResValues
1> :generateReleaseResources
1> :mergeReleaseResources
1> :processReleaseManifest
1> :processReleaseResources
1> :generateReleaseSources
1> :incrementalReleaseJavaCompilationSafeguard
1> :compileReleaseJavaWithJavac
1> :compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
1> :compileReleaseNdk UP-TO-DATE
1> :compileReleaseSources
1> :lintVitalRelease
1> :prePackageMarkerForRelease
1> :transformClassesWithDexForRelease
1> To run dex in process, the Gradle daemon needs a larger heap.
1> It currently has approximately 455 MB.
1> For faster builds, increase the maximum heap size for the Gradle daemon to more than 2048 MB.
1> To do this set org.gradle.jvmargs=-Xmx2048M in the project gradle.properties.
1> For more information see https://docs.gradle.org/current/userguide/build_environment.html
1>
1>
1> :mergeReleaseJniLibFolders
1> :transformNative_libsWithMergeJniLibsForRelease
1> :processReleaseJavaRes UP-TO-DATE
1> :transformResourcesWithMergeJavaResForRelease
1> :packageRelease
1> :assembleRelease
1> :cdvBuildRelease
1>
1> BUILD SUCCESSFUL
1>
1> Total time: 6 mins 5.343 secs
1> Command finished with error code 0: cmd /s /c ""C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\platforms\Android\gradlew.bat" cdvBuildRelease -b "C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\platforms\Android\build.gradle" -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"
1> Built the following apk(s):
1> C:/Users/poury/Documents/Visual Studio 2015/Projects/bazimTest/bazimTest/platforms/Android/build/outputs/apk/Android-release-unsigned.apk
1> No scripts found for hook "after_build".
1> No scripts found for hook "after_compile".
1> ------ Copying back to project: Android
1> ------ Copied platforms\Android\build\outputs\apk\Android-debug-unaligned.apk to C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\bin\Android\Release\Android-debug-unaligned.apk
1> ------ Copied platforms\Android\build\outputs\apk\Android-debug.apk to C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\bin\Android\Release\Android-debug.apk
1> ------ Copied platforms\Android\build\outputs\apk\Android-release-unsigned.apk to C:\Users\poury\Documents\Visual Studio 2015\Projects\bazimTest\bazimTest\bin\Android\Release\Android-release-unsigned.apk
1> ------ Done copying compiled files: Android
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========