|
楼主 |
发表于 2017-8-24 10:42:27
|
显示全部楼层
增加插件:
使用到的插件: [cordova-plugin-media-capture, cordova-plugin-file-opener2, cordova-open, cordova-plugin-dialogs, cordova-plugin-file, cordova-plugin-file-transfer, cordova-plugin-camera, cn.justep.petrochina.oos.OosProviderPlugin, cordova-plugin-network-information, cordova-plugin-media, cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils]
插件安装完成
创建源代码工程:
android应用环境准备:
ios应用环境准备:
生成android应用包:
Running command: cmd "/s /c "F:\WeX5_V3.4\model\Native\鍐�涓滆皟璇昞build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
ANDROID_HOME=F:\WeX5_V3.4/tools/adt-sdk
JAVA_HOME=F:\WeX5_V3.4/java/jre1.8
Running: F:\WeX5_V3.4\model\Native\鍐�涓滆皟璇昞build\src\platforms\android\gradlew cdvBuildDebug -b F:\WeX5_V3.4\model\Native\鍐�涓滆皟璇昞build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
:preBuild
:compileDebugNdk
:preDebugBuild
:checkDebugManifest
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:preBuild
:CordovaLib:preDebugBuild
:CordovaLib:checkDebugManifest
:CordovaLib:preDebugTestBuild
:CordovaLib:preReleaseBuild
:JustepGetContent:compileLint
:JustepGetContent:copyReleaseLint UP-TO-DATE
:JustepGetContent:preBuild
:JustepGetContent:preReleaseBuild
:JustepGetContent:checkReleaseManifest
:JustepGetContent:preDebugBuild
:JustepGetContent:preDebugTestBuild
:JustepGetContent:prepareComAndroidSupportAppcompatV72220Library
:JustepGetContent:prepareComAndroidSupportSupportV42220Library
:JustepGetContent:prepareReleaseDependencies
:JustepGetContent:compileReleaseAidl
:JustepGetContent:compileReleaseRenderscript
:JustepGetContent:generateReleaseBuildConfig
:JustepGetContent:generateReleaseAssets UP-TO-DATE
:JustepGetContent:mergeReleaseAssets
:JustepGetContent:generateReleaseResValues
:JustepGetContent:generateReleaseResources
:JustepGetContent:mergeReleaseResources
:JustepGetContent:processReleaseManifest
:JustepGetContent:processReleaseResources
:JustepGetContent:generateReleaseSources
注: 某些输入文件使用或覆盖了已过时的 API。:JustepGetContent:compileReleaseJava
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
:JustepGetContent:extractReleaseAnnotations
:JustepGetContent:mergeReleaseProguardFiles
:JustepGetContent:processReleaseJavaRes UP-TO-DATE
:JustepGetContent:packageReleaseJar
:JustepGetContent:compileReleaseNdk
:JustepGetContent:packageReleaseJniLibs UP-TO-DATE
:JustepGetContent:packageReleaseLocalJar UP-TO-DATE
:JustepGetContent:packageReleaseRenderscript UP-TO-DATE
:JustepGetContent:packageReleaseResources
:JustepGetContent:bundleRelease
:CordovaLib:prepareAndroidJustepGetContentUnspecifiedLibrary
:CordovaLib:prepareComAndroidSupportAppcompatV72220Library
:CordovaLib:prepareComAndroidSupportSupportV42220Library
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugBuildConfig
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:mergeDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
:CordovaLib:compileDebugJava
:CordovaLib:extractDebugAnnotations
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:packageDebugJar
:CordovaLib:compileDebugNdk
:CordovaLib:packageDebugJniLibs UP-TO-DATE
:CordovaLib:packageDebugLocalJar UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:packageDebugResources
:CordovaLib:bundleDebug
:prepareAndroidCordovaLibUnspecifiedDebugLibrary
:preReleaseBuild
: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
:CordovaLib:mergeReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
:CordovaLib:compileReleaseJava
:CordovaLib:extractReleaseAnnotations
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:packageReleaseJar
:CordovaLib:compileReleaseNdk
:CordovaLib:packageReleaseJniLibs UP-TO-DATE
:CordovaLib:packageReleaseLocalJar UP-TO-DATE
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:packageReleaseResources
:CordovaLib:bundleRelease
:prepareAndroidJustepGetContentUnspecifiedLibrary
:prepareComAndroidSupportAppcompatV72220Library
:prepareComAndroidSupportSupportV42220Library
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets
:generateDebugResValues
:generateDebugResources
F:\WeX5_V3.4\model\Native\冀东调试\build\src\platforms\android\res\drawable-xhdpi\icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
F:\WeX5_V3.4\model\Native\冀东调试\build\src\platforms\android\res\drawable-ldpi\icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
F:\WeX5_V3.4\model\Native\冀东调试\build\src\platforms\android\res\drawable-hdpi\icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
F:\WeX5_V3.4\model\Native\冀东调试\build\src\platforms\android\res\drawable-mdpi\icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
F:\WeX5_V3.4\model\Native\冀东调试\build\src\platforms\android\build\intermediates\exploded-aar\android\JustepGetContent\unspecified\res\drawable\camera_ok.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:mergeDebugResources
:processDebugManifest
:processDebugResources
:generateDebugSources
F:\WeX5_V3.4\model\Native\冀东调试\build\src\platforms\android\src\android\handleOpenURL.java:13: 错误: 程序包cn.com.petrochina不存在
import cn.com.petrochina.oos;
^
F:\WeX5_V3.4\model\Native\冀东调试\build\src\platforms\android\src\android\handleOpenURL.java:28: 错误: 找不到符号
BSMCPBaseUtils util = new BSMCPBaseUtils();
^
符号: 类 BSMCPBaseUtils
位置: 类 handleOpenURL
F:\WeX5_V3.4\model\Native\冀东调试\build\src\platforms\android\src\android\handleOpenURL.java:28: 错误: 找不到符号
BSMCPBaseUtils util = new BSMCPBaseUtils();
^
符号: 类 BSMCPBaseUtils
位置: 类 handleOpenURL
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
3 个错误
FAILURE: Build failed with an exception.
* What went wrong:
:compileDebugJava FAILEDExecution failed for task ':compileDebugJava'.
BUILD FAILED
> Compilation failed; see the compiler error output for details.
Total time: 45.019 secs
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
F:\WeX5_V3.4\model\Native\鍐�涓滆皟璇昞build\src\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "F:\WeX5_V3.4\model\Native\鍐�涓滆皟璇昞build\src\platforms\android\gradlew cdvBuildDebug -b F:\WeX5_V3.4\model\Native\鍐�涓滆皟璇昞build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
Error: cmd: Command failed with exit code 1
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html
|
|