|
发表于 2016-10-13 09:50:07
|
显示全部楼层
报错情况三
android应用环境准备:
ios应用环境准备:
生成android应用包:
Unsupported global orientation: all
Defaulting to value: default
Running command: cmd "/s /c "E:\WeX5\model\Native\RailGuard\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
ANDROID_HOME=E:\WeX5\tools\adt-sdk
JAVA_HOME=E:\WeX5\java\jre1.8
Running: E:\WeX5\model\Native\RailGuard\build\src\platforms\android\gradlew cdvBuildDebug -b E:\WeX5\model\Native\RailGuard\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
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:preDebugAndroidTestBuild UP-TO-DATE
:CordovaLib:preDebugUnitTestBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:preReleaseUnitTestBuild UP-TO-DATE
:JustepGetContent:preBuild UP-TO-DATE
:JustepGetContent:preReleaseBuild UP-TO-DATE
:JustepGetContent:compileReleaseNdk UP-TO-DATE
:JustepGetContent:compileLint
:JustepGetContent:copyReleaseLint UP-TO-DATE
:JustepGetContent:checkReleaseManifest
:JustepGetContent:preDebugAndroidTestBuild UP-TO-DATE
:JustepGetContent:preDebugBuild UP-TO-DATE
:JustepGetContent:preDebugUnitTestBuild UP-TO-DATE
:JustepGetContent:preReleaseUnitTestBuild UP-TO-DATE
: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。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: E:\WeX5\model\Native\RailGuard\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
:JustepGetContent:compileReleaseJavaWithJavac
:JustepGetContent:extractReleaseAnnotations
:JustepGetContent:mergeReleaseProguardFiles
:JustepGetContent:packageReleaseRenderscript UP-TO-DATE
:JustepGetContent:packageReleaseResources
:JustepGetContent:processReleaseJavaRes UP-TO-DATE
:JustepGetContent:transformResourcesWithMergeJavaResForRelease
:JustepGetContent:transformClassesAndResourcesWithSyncLibJarsForRelease
:JustepGetContent:mergeReleaseJniLibFolders
:JustepGetContent:transformNative_libsWithMergeJniLibsForRelease
:JustepGetContent:transformNative_libsWithSyncJniLibsForRelease
: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: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
:CordovaLib:mergeReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
: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
E:\WeX5\model\Native\RailGuard\build\src\platforms\android\src\RailGuaid\Display\ui\MainActivity.java:20: 错误: 需要<标识符>
package RailGuaid.Display.ui.;
^
E:\WeX5\model\Native\RailGuard\build\src\platforms\android\build\generated\source\r\debug\RailGuaid\Display\ui\R.java:8: 错误: 需要<标识符>
package RailGuaid.Display.ui.;
^
E:\WeX5\model\Native\RailGuard\build\src\platforms\android\build\generated\source\buildConfig\debug\RailGuaid\Display\ui\BuildConfig.java:4: 错误: 需要<标识符>
package RailGuaid.Display.ui.;
^
3 个错误
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
:compileDebugJavaWithJavac FAILED
BUILD FAILED
Total time: 31.57 secs
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
E:\WeX5\model\Native\RailGuard\build\src\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "E:\WeX5\model\Native\RailGuard\build\src\platforms\android\gradlew cdvBuildDebug -b E:\WeX5\model\Native\RailGuard\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://bbs.wex5.com/thread-82002-1-1.html
什么问题?请求帮助 |
|