Android 签署apk时生成失败

Android 签署apk时生成失败,android,apk,codenameone,Android,Apk,Codenameone,当我设置证书字段时,我出现了一个构建错误,同时也读取了“我找不到我缺少的点” 使用空白证书字段,一切正常,我得到了apk 这是我的朋友 ios.locationUsageDescription=Some functionality of the application depends on your location ios.objC=true ios.project_type=ios win.ver=8 android.xpermissions=<uses-permission andr

当我设置证书字段时,我出现了一个构建错误,同时也读取了“我找不到我缺少的点”

使用空白证书字段,一切正常,我得到了apk

这是我的朋友

ios.locationUsageDescription=Some functionality of the application depends on your location
ios.objC=true
ios.project_type=ios
win.ver=8
android.xpermissions=<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/><uses-feature         android:glEsVersion="0x00020000"         android:required="true"/>
ios.dsym=false
android.xapplication=<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="XXXXXXXXXXXXXXXXXXXXX"/>
ios.glAppDelegateHeader=
#import "GoogleMaps/GoogleMaps.h"
ios.add_libs=SystemConfiguration.framework
ios.statusbar_hidden=false
ios.application_exits=false
ios.includePush=false
android.playService.maps=true
android.GoogleMaps.minPlayServicesVersion=9.4.0
j2me.nativeThemeConst=0
java.version=8
ios.pods=,GoogleMaps
ios.prerendered_icon=false
ios.testFlight=false
rim.obfuscation=false
ios.interface_orientation=UIInterfaceOrientationPortrait:UIInterfaceOrientationPortraitUpsideDown:UIInterfaceOrientationLandscapeLeft:UIInterfaceOrientationLandscapeRight
ios.newStorageLocation=true
android.release=true
ios.pods.platform=,7.0
android.debug=true
ios.pods.sources=,https://github.com/CocoaPods/Specs.git
ios.locationUsageDescription=应用程序的某些功能取决于您的位置
ios.objC=true
ios.project_type=ios
win.ver=8
android.xpermissions=
ios.dsym=false
android.xaapplication=
ios.glAppDelegateHeader=
#导入“GoogleMaps/GoogleMaps.h”
ios.add_libs=SystemConfiguration.framework
ios.statusbar\u hidden=false
ios.application\u exits=false
ios.includePush=false
android.playService.maps=true
android.GoogleMaps.minPlayServicesVersion=9.4.0
j2me.nativeThemeConst=0
java.version=8
ios.pods=,谷歌地图
ios.prerendered_icon=false
ios.testFlight=false
边缘模糊=错误
ios.interface_orientation=UIInterfaceOrientation纵向:UIInterfaceOrientation纵向:UIInterfaceOrientation向上向下:UIInterfaceOrientation与景观左:UIInterfaceOrientation与景观右
ios.newStorageLocation=true
android.release=true
ios.pods.platform=,7.0
android.debug=true
ios.pods.sources=,https://github.com/CocoaPods/Specs.git
你能给我一个提示或一些链接阅读吗?
谢谢,大卫。

由于以下
proguard
警告,您的构建失败:

Warning: net.amicofree.fdrmobile.cno.forms.BarCodeForm: can't find referenced class org.apache.avalon.framework.configuration.DefaultConfiguration
Warning: net.amicofree.fdrmobile.cno.forms.BarCodeForm: can't find referenced class org.apache.avalon.framework.configuration.DefaultConfiguration
Warning: net.amicofree.fdrmobile.cno.forms.BarCodeForm: can't find referenced class org.apache.avalon.framework.configuration.DefaultConfiguration
Warning: net.amicofree.fdrmobile.cno.forms.BarCodeForm: can't find referenced class org.apache.avalon.framework.configuration.DefaultConfiguration
Warning: net.amicofree.fdrmobile.cno.forms.BarCodeForm: can't find referenced class org.apache.avalon.framework.configuration.DefaultConfiguration
Warning: net.amicofree.fdrmobile.cno.forms.BarCodeForm: can't find referenced class org.apache.avalon.framework.configuration.DefaultConfiguration
Warning: net.amicofree.fdrmobile.cno.forms.BarCodeForm: can't find referenced class org.apache.avalon.framework.configuration.DefaultConfiguration
Warning: net.amicofree.fdrmobile.cno.forms.BarCodeForm: can't find referenced class org.apache.avalon.framework.configuration.DefaultConfiguration
Warning: net.amicofree.fdrmobile.cno.forms.BarCodeForm: can't find referenced class org.apache.avalon.framework.configuration.DefaultConfiguration
如果您认为已编译和生成项目中存在引用的类,则可以在
proguard
规则中添加以下行以消除这些警告:

-dontwarn net.amicofree.fdrmobile.cno. forms.**

首先,感谢您为我指明了正确的方向,我已经删除了“条形码表单”,所有内容都可以编译,并且应用程序也可以安装在设备上。但问题的一部分仍然悬而未决:为什么只有在签署应用程序时才会发生,而不是总是发生?在Android上,我们不会重新编译您的代码,因此如果您使用的API不受支持,我们在混淆阶段(而非签署阶段)之前无法确定。问题是您是如何使用条形码扫描的,以及哪种条形码扫描解决方案?您是否使用了我们现有的条形码解决方案?如果您更改了代号为One项目的类路径,那么服务器构建过程就不会意识到这一点,也不知道该怎么做。@DavideRizzo非常欢迎您!因为“Shai Almog”已经回答了你的问题,所以我不会说太多。我将指出,当您在
build.gradle
中设置
minifyEnabled true
时,您要求通过删除未使用的库和代码来最小化代码,因此,
proguard
将检查编译后的代码,以查看哪些代码未被删除,这就是为什么您在本例中看到这一点,而不是在它之前。因此,如果我要求发布版本,默认情况下,我使用minifyEnabled=true,这就是我生成错误的原因。-BarCodeForm类是我编写的第一个类之一,我将重新思考并再次编写它。谢谢大家。