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

QQ登录

只需一步,快速开始

查看: 3246|回复: 6

[结贴] v3.8正式版本打包乱码,出错:unable to find attribute android:font

  [复制链接]

2

主题

16

帖子

86

积分

初级会员

Rank: 2

积分
86
QQ
发表于 2018-5-18 11:42:35 | 显示全部楼层 |阅读模式
引入了最新版本的插件:phonegap-plugin-barcodescanner

出错信息:
  1.       * Try:
  2.       Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  3.    C:\Users\pc\AppData\Local\Temp\bb5883dd-d561-4e9c-8502-6a097389656b\pack.xml:91: exec returned: 1
  4.            at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
  5.            at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
  6.            at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
  7.            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
  8.            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  9.            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  10.            at java.lang.reflect.Method.invoke(Method.java:497)
  11.            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  12.            at org.apache.tools.ant.Task.perform(Task.java:348)
  13.            at org.apache.tools.ant.Target.execute(Target.java:435)
  14.            at org.apache.tools.ant.Target.performTasks(Target.java:456)
  15.            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
  16.            at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
  17.            at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
  18.            at com.justep.deploy.app.utils.Builder.main(Unknown Source)
  19.       Error: cmd: Command failed with exit code 1 Error output:
  20.       注: 某些锟斤拷锟斤拷锟侥硷拷使锟矫或覆革拷锟斤拷锟窖癸拷时锟斤拷 API锟斤拷
  21.       注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:deprecation 锟斤拷锟铰憋拷锟诫。
  22.       注: D:\wex5_v38\model\Native\ewm\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使锟斤拷锟斤拷未锟斤拷锟斤拷锟斤拷锟津不帮拷全锟侥诧拷锟斤拷锟斤拷
  23.       注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:unchecked 锟斤拷锟铰憋拷锟诫。
  24.       注: 某些锟斤拷锟斤拷锟侥硷拷使锟矫或覆革拷锟斤拷锟窖癸拷时锟斤拷 API锟斤拷
  25.       注: 锟叫癸拷锟斤拷细锟斤拷息, 锟斤拷使锟斤拷 -Xlint:deprecation 锟斤拷锟铰憋拷锟诫。
  26.       ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
  27.       ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
  28.       ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight
  29.       
  30.       
  31.       FAILURE: Build failed with an exception.
  32.       
  33.       * What went wrong:
  34.       Execution failed for task ':processDebugResources'.
  35.       > com.android.ide.common.process.ProcessException: Failed to execute aapt
复制代码

2

主题

16

帖子

86

积分

初级会员

Rank: 2

积分
86
QQ
 楼主| 发表于 2018-5-18 12:49:45 | 显示全部楼层
自己解决了,插件问题;
删除插件配置:
  1. <framework src="com.android.support:support-v4:$ANDROID_SUPPORT_V4_VERSION"/>
复制代码



回复 支持 反对

使用道具 举报

发表于 2018-5-18 17:21:45 | 显示全部楼层
3.8版本  这个插件
com.justep.cordova.plugin.barcodescanner
已经拥有 比较完整的扫码能力,  你的插件
phonegap-plugin-barcodescanner
是旧版本的 3.6 插件

建议3.8使用最新插件吧!这个插件已经改好了!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

13

主题

41

帖子

80

积分

初级会员

Rank: 2

积分
80
QQ
发表于 2018-8-16 21:36:22 | 显示全部楼层
gavingu 发表于 2018-5-18 12:49
自己解决了,插件问题;
删除插件配置:

你好,请问这个删除插件配置加在什么位置?
回复 支持 反对

使用道具 举报

10

主题

89

帖子

313

积分

中级会员

Rank: 3Rank: 3

积分
313
QQ
发表于 2018-8-28 21:41:31 | 显示全部楼层
liangyongfei 发表于 2018-5-18 17:21
3.8版本  这个插件
com.justep.cordova.plugin.barcodescanner
已经拥有 比较完整的扫码能力,  你的插件

3.8版本下的,xcode编译时,这个插件里面的libuchardet.a压缩文件缺少x86_64位
在编译的时候,NCUchardet文件中提示64位系统无法识别的符号,具体信息如下:
ld: warning: ignoring file /Volumes/rows2/WeX5_3.8-mac/model/Native/bubu/build/src/platforms/ios/咘咘/Plugins/com.justep.cordova.plugin.barcodescanner/libuchardet.a, missing required architecture x86_64 in file /Volumes/rows2/WeX5_3.8-mac/model/Native/bubu/build/src/platforms/ios/咘咘/Plugins/com.justep.cordova.plugin.barcodescanner/libuchardet.a (2 slices)
Undefined symbols for architecture x86_64:
  "_uchardet_data_end", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet-2605A468AF8F2799.o
  "_uchardet_get_charset", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet-2605A468AF8F2799.o
  "_uchardet_reset", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet-2605A468AF8F2799.o
  "_uchardet_handle_data", referenced from:
      -[NCUchardet encodingStringDetectWithData:length:] in NCUchardet-2605A468AF8F2799.o
  "_uchardet_delete", referenced from:
      -[NCUchardet dealloc] in NCUchardet-2605A468AF8F2799.o
  "_uchardet_new", referenced from:
      -[NCUchardet init] in NCUchardet-2605A468AF8F2799.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
回复 支持 反对

使用道具 举报

10

主题

89

帖子

313

积分

中级会员

Rank: 3Rank: 3

积分
313
QQ
发表于 2018-8-29 02:12:31 | 显示全部楼层
d1bug 发表于 2018-8-28 21:41
3.8版本下的,xcode编译时,这个插件里面的libuchardet.a压缩文件缺少x86_64位
在编译的时候,NCUchardet文 ...

解决方案,不用com.justep.cordova.plugin.barcodescanner插件
改用cordova-plugin-qrscanner插件即可
回复 支持 反对

使用道具 举报

23

主题

84

帖子

298

积分

中级会员

Rank: 3Rank: 3

积分
298
QQ
发表于 2020-7-15 20:02:07 | 显示全部楼层
我也是遇到了这个问题,请问在哪删除插件配置
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-28 16:13 , Processed in 0.114480 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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