起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: tonglaga

[处理中3] 放了自定义cordova插件,打包报错

[复制链接]

46

主题

117

帖子

302

积分

中级会员

Rank: 3Rank: 3

积分
302
QQ
 楼主| 发表于 2018-7-6 11:10:49 | 显示全部楼层
创建源代码工程:
      
   生成源代码:
      
   完成。
环境初始化:
   
   开始......
      
   生成应用环境准备:
      
   android应用环境准备:
      
   ios应用环境准备:
      
   生成android应用包:
      
      You have been opted out of telemetry. To change this, run: cordova telemetry on.
      args.nofetch undefined
      android project rename compelete!!!!!!
      ANDROID_HOME=D:\WeX5_3.8\tools\adt-sdk
      JAVA_HOME=D:\WeX5_3.8\java\jre1.8
      Parallel execution with configuration on demand is an incubating feature.
      :wrapper
      
      BUILD SUCCESSFUL
      
      Total time: 10.523 secs
      Subproject Path: CordovaLib
      Subproject Path: JustepGetContent
      NDK is missing a "platforms" directory.
      If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to D:\WeX5_3.8\tools\adt-sdk\ndk-bundle.
      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
      
      The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
              at build_9zuppfjb8b5q0b29kmdw30wo1.run(D:\WeX5_3.8\model\Native\远锟斤拷4\build\src\platforms\android\build.gradle:149)
      NDK is missing a "platforms" directory.
      If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to D:\WeX5_3.8\tools\adt-sdk\ndk-bundle.
      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
      
      NDK is missing a "platforms" directory.
      If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to D:\WeX5_3.8\tools\adt-sdk\ndk-bundle.
      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
      
      Incremental java compilation is an incubating feature.
      :preBuild UP-TO-DATE
      :preDebugBuild UP-TO-DATE
      :checkDebugManifest
      :preReleaseBuild UP-TO-DATE
      :prepareAndroidArchLifecycleRuntime103Library
      :prepareComAndroidSupportAnimatedVectorDrawable2702Library
      :prepareComAndroidSupportAppcompatV72702Library
      :prepareComAndroidSupportDesign2702Library
      :preDebugAndroidTestBuild UP-TO-DATE
      :prepareComAndroidSupportMultidex101Library
      :prepareComAndroidSupportRecyclerviewV72702Library
      :prepareComAndroidSupportSupportCompat2702Library
      :prepareComAndroidSupportSupportCoreUi2702Library
      :prepareComAndroidSupportSupportCoreUtils2702Library
      :prepareComAndroidSupportSupportFragment2702Library
      :prepareComAndroidSupportSupportMediaCompat2702Library
      :prepareComAndroidSupportSupportV42702Library
      :prepareComAndroidSupportSupportVectorDrawable2702Library
      :prepareComAndroidSupportTransition2702Library
      :prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library
      :prepareComFacebookFrescoDrawee130Library
      :prepareComFacebookFrescoFbcore130Library
      :prepareComFacebookFrescoFresco130Library
      :prepareComFacebookFrescoImagepipeline130Library
      :prepareComFacebookFrescoImagepipelineBase130Library
      :prepareComFacebookFrescoImagepipelineOkhttp3130Library
      :prepareComFacebookReactReactNative0510Library
      :prepareComFacebookReactReactNativeBackgroundTimer200Jitsi1Library
      :prepareComFacebookReactReactNativeFetchBlob0108Jitsi1Library
      :prepareComFacebookReactReactNativeImmersive110Jitsi1Library
      :prepareComFacebookReactReactNativeKeepAwake206Jitsi1Library
      :prepareComFacebookReactReactNativeLocaleDetector100Jitsi1Library
      :prepareComFacebookReactReactNativeVectorIcons442Jitsi1Library
      :prepareComFacebookReactReactNativeWebrtc1582Jitsi1Library
      :prepareComFacebookSoloaderSoloader010Library
      :prepareComGithubChrisbanesPhotoviewLibrary124Library
      :prepareImagepickerReleaseLibrary
      :prepareOrgJitsiReactJitsiMeetSdk190Library
      :prepareOrgWebkitAndroidJscR174650Library
      :CordovaLib:preBuild UP-TO-DATE
      :CordovaLib:preReleaseBuild UP-TO-DATE
      :CordovaLib:checkReleaseManifest
      :CordovaLib:preDebugAndroidTestBuild UP-TO-DATE
      :CordovaLib:preDebugBuild UP-TO-DATE
      :CordovaLib:preDebugUnitTestBuild UP-TO-DATE
      :CordovaLib:preReleaseUnitTestBuild UP-TO-DATE
      :CordovaLib:prepareComAndroidSupportAnimatedVectorDrawable2530Library
      :CordovaLib:prepareComAndroidSupportAppcompatV72530Library
      :CordovaLib:prepareComAndroidSupportSupportCompat2530Library
      :CordovaLib:prepareComAndroidSupportSupportCoreUi2530Library
      :CordovaLib:prepareComAndroidSupportSupportCoreUtils2530Library
      :CordovaLib:prepareComAndroidSupportSupportFragment2530Library
      :CordovaLib:prepareComAndroidSupportSupportMediaCompat2530Library
      :CordovaLib:prepareComAndroidSupportSupportV42530Library
      :CordovaLib:prepareComAndroidSupportSupportVectorDrawable2530Library
      :CordovaLib:prepareComGithubChrisbanesPhotoviewLibrary124Library
      :CordovaLib:prepareImagepickerReleaseLibrary
      :JustepGetContent:preBuild UP-TO-DATE
      :JustepGetContent:preReleaseBuild 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:prepareComAndroidSupportAnimatedVectorDrawable2530Library
      :JustepGetContent:prepareComAndroidSupportAppcompatV72530Library
      :JustepGetContent:prepareComAndroidSupportSupportCompat2530Library
      :JustepGetContent:prepareComAndroidSupportSupportCoreUi2530Library
      :JustepGetContent:prepareComAndroidSupportSupportCoreUtils2530Library
      :JustepGetContent:prepareComAndroidSupportSupportFragment2530Library
      :JustepGetContent:prepareComAndroidSupportSupportMediaCompat2530Library
      :JustepGetContent:prepareComAndroidSupportSupportV42530Library
      :JustepGetContent:prepareComAndroidSupportSupportVectorDrawable2530Library
      :JustepGetContent:prepareComGithubChrisbanesPhotoviewLibrary124Library
      :JustepGetContent:prepareImagepickerReleaseLibrary
      :JustepGetContent:prepareReleaseDependencies
      :JustepGetContent:compileReleaseAidl
      :JustepGetContent:compileReleaseNdk UP-TO-DATE
      :JustepGetContent:compileLint
      :JustepGetContent:copyReleaseLint UP-TO-DATE
      :JustepGetContent:compileReleaseRenderscript
      :JustepGetContent:generateReleaseBuildConfig
      :JustepGetContent:generateReleaseResValues
      :JustepGetContent:generateReleaseResources
      :JustepGetContent:mergeReleaseResources
      :JustepGetContent:processReleaseManifest
      :JustepGetContent:processReleaseResources
      :JustepGetContent:generateReleaseSources
      :JustepGetContent:incrementalReleaseJavaCompilationSafeguard
      :JustepGetContent:javaPreCompileRelease
      :JustepGetContent:compileReleaseJavaWithJavac
      :JustepGetContent:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
      注: 某些锟斤拷锟斤拷锟侥硷拷使锟矫或覆革拷锟斤拷锟窖癸拷时锟斤拷 API锟斤拷
      注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:deprecation 锟斤拷锟铰憋拷锟诫。
      注: D:\WeX5_3.8\model\Native\远锟斤拷4\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使锟斤拷锟斤拷未锟斤拷锟斤拷锟斤拷锟津不帮拷全锟侥诧拷锟斤拷锟斤拷
      注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:unchecked 锟斤拷锟铰憋拷锟诫。
回复 支持 反对

使用道具 举报

46

主题

117

帖子

302

积分

中级会员

Rank: 3Rank: 3

积分
302
QQ
 楼主| 发表于 2018-7-6 11:11:09 | 显示全部楼层
:JustepGetContent:extractReleaseAnnotations
      :JustepGetContent:mergeReleaseShaders
      :JustepGetContent:compileReleaseShaders
      :JustepGetContent:generateReleaseAssets
      :JustepGetContent:mergeReleaseAssets
      :JustepGetContent:mergeReleaseProguardFiles
      :JustepGetContent:packageReleaseRenderscript UP-TO-DATE
      :JustepGetContent:packageReleaseResources
      :JustepGetContent:processReleaseJavaRes UP-TO-DATE
      :JustepGetContent:transformResourcesWithMergeJavaResForRelease
      :JustepGetContent:transformClassesAndResourcesWithSyncLibJarsForRelease
      :JustepGetContent:mergeReleaseJniLibFolders
      :JustepGetContent:transformNativeLibsWithMergeJniLibsForRelease
      :JustepGetContent:transformNativeLibsWithSyncJniLibsForRelease
      :JustepGetContent:bundleRelease
      :CordovaLib:prepareReleaseDependencies
      :CordovaLib:compileReleaseAidl
      :CordovaLib:compileReleaseNdk UP-TO-DATE
      :CordovaLib:compileLint
      :CordovaLib:copyReleaseLint UP-TO-DATE
      :CordovaLib:compileReleaseRenderscript
      :CordovaLib:generateReleaseBuildConfig
      :CordovaLib:generateReleaseResValues
      :CordovaLib:generateReleaseResources
      :CordovaLib:mergeReleaseResources
      :CordovaLib:processReleaseManifest
      :CordovaLib:processReleaseResources
      :CordovaLib:generateReleaseSources
      :CordovaLib:incrementalReleaseJavaCompilationSafeguard
      :CordovaLib:javaPreCompileRelease
      :CordovaLib:compileReleaseJavaWithJavac
      :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
      注: 某些锟斤拷锟斤拷锟侥硷拷使锟矫或覆革拷锟斤拷锟窖癸拷时锟斤拷 API锟斤拷
      注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:deprecation 锟斤拷锟铰憋拷锟诫。
      :CordovaLib:extractReleaseAnnotations
      :CordovaLib:mergeReleaseShaders
      :CordovaLib:compileReleaseShaders
      :CordovaLib:generateReleaseAssets
      :CordovaLib:mergeReleaseAssets
      :CordovaLib:mergeReleaseProguardFiles
      :CordovaLib:packageReleaseRenderscript UP-TO-DATE
      :CordovaLib:packageReleaseResources
      :CordovaLib:processReleaseJavaRes UP-TO-DATE
      :CordovaLib:transformResourcesWithMergeJavaResForRelease
      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
      :CordovaLib:mergeReleaseJniLibFolders
      :CordovaLib:transformNativeLibsWithMergeJniLibsForRelease
      :CordovaLib:transformNativeLibsWithSyncJniLibsForRelease
      :CordovaLib:bundleRelease
      :prepareDebugDependencies
      :compileDebugAidl
      :compileDebugRenderscript
      :generateDebugBuildConfig
      :generateDebugResValues
      :generateDebugResources
      :mergeDebugResources
      :processDebugManifest
      D:\WeX5_3.8\model\Native\???4\build\src\platforms\android\build\intermediates\res\merged\debug\values-v26\values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
      
      D:\WeX5_3.8\model\Native\???4\build\src\platforms\android\build\intermediates\res\merged\debug\values-v26\values-v26.xml:18: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
      
      
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':processDebugResources'.
      > com.android.ide.common.process.ProcessException: Failed to execute aapt
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      :processDebugResources FAILED
      
      BUILD FAILED
      
      Total time: 49.923 secs
      Error: cmd: Command failed with exit code 1 Error output:
      注: 某些锟斤拷锟斤拷锟侥硷拷使锟矫或覆革拷锟斤拷锟窖癸拷时锟斤拷 API锟斤拷
      注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:deprecation 锟斤拷锟铰憋拷锟诫。
      注: D:\WeX5_3.8\model\Native\远锟斤拷4\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使锟斤拷锟斤拷未锟斤拷锟斤拷锟斤拷锟津不帮拷全锟侥诧拷锟斤拷锟斤拷
      注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:unchecked 锟斤拷锟铰憋拷锟诫。
      注: 某些锟斤拷锟斤拷锟侥硷拷使锟矫或覆革拷锟斤拷锟窖癸拷时锟斤拷 API锟斤拷
      注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:deprecation 锟斤拷锟铰憋拷锟诫。
      D:\WeX5_3.8\model\Native\???4\build\src\platforms\android\build\intermediates\res\merged\debug\values-v26\values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
      
      D:\WeX5_3.8\model\Native\???4\build\src\platforms\android\build\intermediates\res\merged\debug\values-v26\values-v26.xml:18: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
      
      
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':processDebugResources'.
      > com.android.ide.common.process.ProcessException: Failed to execute aapt
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      Picked up _JAVA_OPTIONS: -Xmx1024M
   ****ERROR****: 子任务 "exec" 执行失败。
   ****ERROR****: 任务 "buildAndroid" 执行失败。
   ****ERROR****: 执行出错:
   ****ERROR****: 错误信息: exec returned: 1
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
   C:\Users\77905\AppData\Local\Temp\f0e9ba0e-7fd6-42ae-9f92-165225e81f2e\pack.xml:91: exec returned: 1
           at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
           at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
           at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
           at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:497)
           at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
           at org.apache.tools.ant.Task.perform(Task.java:348)
           at org.apache.tools.ant.Target.execute(Target.java:435)
           at org.apache.tools.ant.Target.performTasks(Target.java:456)
           at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
           at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
           at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
           at com.justep.deploy.app.utils.Builder.main(Unknown Source)
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

46

主题

117

帖子

302

积分

中级会员

Rank: 3Rank: 3

积分
302
QQ
 楼主| 发表于 2018-7-6 11:13:08 | 显示全部楼层
我放了  自定义插件 cordova-plugin-jitsi ,打包的时候报这样的错误,哪位大神帮我解决一下
回复 支持 反对

使用道具 举报

发表于 2018-7-6 11:37:29 | 显示全部楼层
tonglaga 发表于 2018-7-6 11:13
我放了  自定义插件 cordova-plugin-jitsi ,打包的时候报这样的错误,哪位大神帮我解决一下
...

如果不使用这个插件,就可以保证不报错吗??
先不用这个插件试试,如果打包正常,其他因素就排除了!

你的应用名称是什么??
日志中,  \???4\  是乱码吗??

自定义插件有些地方注意
http://docs.wex5.com/wex5-app-question-list-2051

如果都满足条件,还不行可能就是插件规范不符合要求
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-23 06:51 , Processed in 0.072313 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表