|
楼主 |
发表于 2016-12-7 17:25:50
|
显示全部楼层
谢谢, 这种方式好像有效果, 但是日志文件里面依然后错误, 编译的速度也依然慢。
修改完之后我又重新确认了一下效果, 好点, 但是不理想, 下面是日志信息:
。。。。。
增加插件:
使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, cordova-plugin-x-toast, cordova-plugin-inappbrowser, cordova-plugin-app-version]
开始安装插件......
开始准备插件参数......
插件 "cordova-plugin-splashscreen" 参数如下:
插件 "cordova-plugin-app-preferences" 参数如下:
插件 "cordova-plugin-file" 参数如下:
插件 "cordova-plugin-file-transfer" 参数如下:
插件 "cordova-plugin-network-information" 参数如下:
插件 "cordova-plugin-zip" 参数如下:
插件 "cordova-plugin-inappbrowser" 参数如下:
插件 "cordova-plugin-x-toast" 参数如下:
插件 "com.justep.cordova.plugin.app.utils" 参数如下:
插件 "cordova-plugin-app-version" 参数如下:
插件参数准备完成
Installing "cordova-plugin-splashscreen" for android
。。。。。
插件安装完成
创建源代码工程:
android应用环境准备:
ios应用环境准备:
生成android应用包:
Running command: cmd "/s /c "D:\Download\WeX5\WeX5_V3.5\model\Native\璁拌处鏈琝build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
ANDROID_HOME=D:\Download\WeX5\WeX5_V3.5\tools\adt-sdk
JAVA_HOME=D:\Download\WeX5\WeX5_V3.5\java\jre1.8
Running: D:\Download\WeX5\WeX5_V3.5\model\Native\璁拌处鏈琝build\src\platforms\android\gradlew cdvBuildDebug -b D:\Download\WeX5\WeX5_V3.5\model\Native\璁拌处鏈琝build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
Starting a new Gradle Daemon for this build (subsequent builds will be faster).
Incremental java compilation is an incubating feature.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
。。。。。。。
Exception in thread "png-cruncher_8" java.lang.RuntimeException: Timed out while waiting for slave aapt process, make sure the aapt execute at D:\Download\WeX5\WeX5_V3.5\tools\adt-sdk\build-tools\22.0.1\aapt.exe can run successfully (some anti-virus may block it) or try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 600 seconds
at com.android.builder.png.AaptProcess.waitForReady(AaptProcess.java:108)
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:110)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
at java.lang.Thread.run(Thread.java:745)
。。。。。。。。
Exception in thread "png-cruncher_17" java.lang.RuntimeException: Timed out while waiting for slave aapt process, make sure the aapt execute at D:\Download\WeX5\WeX5_V3.5\tools\adt-sdk\build-tools\22.0.1\aapt.exe can run successfully (some anti-virus may block it) or try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 600 seconds
at com.android.builder.png.AaptProcess.waitForReady(AaptProcess.java:108)
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:110)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
at java.lang.Thread.run(Thread.java:745)
:JustepGetContent:mergeReleaseResources
:JustepGetContent:processReleaseManifest
:JustepGetContent:processReleaseResources
:JustepGetContent:generateReleaseSources
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\Download\WeX5\WeX5_V3.5\model\Native\记账本\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:JustepGetContent:compileReleaseJavaWithJavac
:JustepGetContent:extractReleaseAnnotations
。。。。。。
:CordovaLib:prepareAndroidJustepGetContentUnspecifiedLibrary
:CordovaLib:prepareComAndroidSupportAppcompatV72220Library
。。。。。
Exception in thread "png-cruncher_8" java.lang.RuntimeException: Timed out while waiting for slave aapt process, make sure the aapt execute at D:\Download\WeX5\WeX5_V3.5\tools\adt-sdk\build-tools\25.0.1\aapt.exe can run successfully (some anti-virus may block it) or try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 600 seconds
at com.android.builder.png.AaptProcess.waitForReady(AaptProcess.java:108)
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:110)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
at java.lang.Thread.run(Thread.java:745)
。。。。。。。
:CordovaLib:mergeDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:compileDebugJavaWithJavac
:CordovaLib:extractDebugAnnotations
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:packageDebugResources
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug
:prepareAndroidCordovaLibUnspecifiedDebugLibrary
:preReleaseBuild UP-TO-DATE
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
Exception in thread "png-cruncher_33" java.lang.RuntimeException: Timed out while waiting for slave aapt process, make sure the aapt execute at D:\Download\WeX5\WeX5_V3.5\tools\adt-sdk\build-tools\25.0.1\aapt.exe can run successfully (some anti-virus may block it) or try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 600 seconds
at com.android.builder.png.AaptProcess.waitForReady(AaptProcess.java:108)
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:110)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
at java.lang.Thread.run(Thread.java:745)
。。。。。
:CordovaLib:mergeReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:compileReleaseJavaWithJavac
:CordovaLib:extractReleaseAnnotations
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:packageReleaseResources
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
:CordovaLib:bundleRelease
:prepareAndroidJustepGetContentUnspecifiedLibrary
:prepareComAndroidSupportAppcompatV72220Library
:prepareComAndroidSupportSupportV42220Library
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
:generateDebugSources
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:compileDebugJavaWithJavac
:compileDebugNdk UP-TO-DATE
:compileDebugSources
:prePackageMarkerForDebug
:transformClassesWithDexForDebug
:mergeDebugJniLibFolders
:transformNative_libsWithMergeJniLibsForDebug
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug
:validateDebugSigning
:packageDebug
:zipalignDebug
:assembleDebug
:cdvBuildDebug
BUILD SUCCESSFUL
Total time: 31 mins 20.679 secs
Built the following apk(s):
D:\Download\WeX5\WeX5_V3.5\model\Native\璁拌处鏈琝build\src\platforms\android\build\outputs\apk\android-debug.apk
生成ios应用包:
发布版本更新文件:
发布版本更新文件......
完成。
|
|