MobileFirst 7.1 Progurd 获取错误返回代码 1

Posted

技术标签:

【中文标题】MobileFirst 7.1 Progurd 获取错误返回代码 1【英文标题】:MobileFirst 7.1 Progurd getting Error return code 1 【发布时间】:2016-12-06 07:31:46 【问题描述】:

我在 Eclipse 中使用 mobilefirst 7.1 环境。我只是创建示例混合应用程序并添加 android 环境。然后我在遇到错误时使用未签名的 apk。请帮助我。

谢谢你:)

Progurd-project.txt

    # To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in $sdk.dir/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the javascript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview 
#   public *;
#

-injars      bin/classes
-injars      libs
-outjars     bin/classes-processed.jar
-injars libs/jmdns.jar 

# Using Google's License Verification Library 
-keep class com.android.vending.licensing.ILicensingService

# Specifies to write out some more information during processing. 
# If the program terminates with an exception, this option will print out the entire stack trace, instead of just the exception message.
-verbose

####################################################################################################
##############################  IBM MobileFirst Platform configuration  ############################
####################################################################################################
# Annotations are represented by attributes that have no direct effect on the execution of the code. 
-keepattributes *Annotation*

-keepclassmembers enum * 
    public static **[] values();
    public static ** valueOf(java.lang.String);


-keepattributes InnerClasses
-keep class **.R
-keep class **.R$* 
    <fields>;


# These options let obfuscated applications or libraries produce stack traces that can still be deciphered later on 
-renamesourcefileattribute SourceFile    
-keepattributes SourceFile,LineNumberTable

# Enable proguard with Cordova
-keep class org.apache.cordova.**  *; 
-keep public class * extends org.apache.cordova.CordovaPlugin

-keep class com.worklight.androidgap.push.**  *; 
-keep class com.worklight.wlclient.push.**  *; 
-keep class com.worklight.common.security.AppAuthenticityToken  *; 

# Enable proguard with Google libs
-keep class com.google.**  *;
-dontwarn com.google.common.**
-dontwarn com.google.ads.**

# apache.http
-keep class org.apache.http.**  *; 
-dontwarn org.apache.http.**
-optimizations !class/merging/vertical*,!class/merging/horizontal*,!code/simplification/arithmetic,!field/*,!code/allocation/variable

-keep class net.sqlcipher.**  *; 
-dontwarn net.sqlcipher.**

-keep class org.codehaus.**  *; 
-keepattributes *Annotation*,EnclosingMethod

-keepclassmembers enum * 
    public static **[] values();
    public static ** valueOf(java.lang.String);


# Remove debug logs in release build
-assumenosideeffects class android.util.Log 
    public static *** d(...);


# These classes contain references to external jars which are not included in the default MobileFirst project.
-dontwarn com.worklight.common.internal.WLTrusteerInternal*
-dontwarn com.worklight.jsonstore.**
-dontwarn org.codehaus.jackson.map.ext.*
-dontwarn com.worklight.androidgap.push.GCMIntentService
-dontwarn com.worklight.androidgap.plugin.WLInitializationPlugin
-dontwarn com.worklight.wlclient.push.GCMIntentService
-dontwarn org.bouncycastle.**
-dontwarn com.worklight.androidgap.jsonstore.security.SecurityManager

-dontwarn com.worklight.wlclient.push.WLBroadcastReceiver
-dontwarn com.worklight.wlclient.push.common.*
-dontwarn com.worklight.wlclient.api.WLPush
-dontwarn com.worklight.wlclient.api.SecurityUtils

-dontwarn android.support.v4.**
-dontwarn android.net.SSLCertificateSocketFactory
-dontwarn android.net.http.*
-dontwarn okio.**
-dontwarn com.squareup.okhttp.**
################################################################################

控制台错误

[2016-12-06 12:46:55 - progurdProgurdAndroid] Proguard returned with error code 1. See console
[2016-12-06 12:46:55 - progurdProgurdAndroid] Note: there were 3284 duplicate class definitions.
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find superclass or interface javax.swing.JFrame
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find superclass or interface javax.swing.event.ListSelectionListener
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser$ServiceTableModel: can't find superclass or interface javax.swing.table.AbstractTableModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JFrame
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class java.awt.Color
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class java.awt.Color
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.border.EmptyBorder
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.border.EmptyBorder
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced method 'java.awt.Container getContentPane()' in class com.strangeberry.jmdns.tools.Browser
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class java.awt.GridLayout
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class java.awt.GridLayout
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class java.awt.Container
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JList
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JList
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JList
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JList
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JList
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JList
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JPanel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JPanel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class java.awt.BorderLayout
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class java.awt.BorderLayout
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JPanel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JLabel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JLabel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JPanel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JScrollPane
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JScrollPane
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class java.awt.Container
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JTextArea
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JTextArea
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JTextArea
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JTextArea
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JTextArea
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JTextArea
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced method 'void setDefaultCloseOperation(int)' in class com.strangeberry.jmdns.tools.Browser
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced method 'void setLocation(int,int)' in class com.strangeberry.jmdns.tools.Browser
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced method 'void setSize(int,int)' in class com.strangeberry.jmdns.tools.Browser
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced method 'void setVisible(boolean)' in class com.strangeberry.jmdns.tools.Browser
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.SwingUtilities
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JList
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.event.ListSelectionEvent
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.event.ListSelectionEvent
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JTextArea
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JFrame
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.event.ListSelectionListener
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class java.awt.Color
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.border.EmptyBorder
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class java.awt.Container
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JPanel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class java.awt.Container
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.SwingUtilities
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.event.ListSelectionEvent
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JList
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JList
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.JTextArea
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser: can't find referenced class javax.swing.event.ListSelectionEvent
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser$2: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser$2: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser$ServiceTableModel: can't find referenced class javax.swing.table.AbstractTableModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser$ServiceTableModel: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser$ServiceTableModel: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser$ServiceTableModel: can't find referenced class javax.swing.table.AbstractTableModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: com.strangeberry.jmdns.tools.Browser$ServiceTableModel: can't find referenced class javax.swing.DefaultListModel
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.easymock.EasyMock
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.easymock.EasyMock
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.easymock.Capture
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.easymock.Capture
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.easymock.EasyMock
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.easymock.EasyMock
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.easymock.Capture
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.easymock.Capture
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.easymock.EasyMock
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.easymock.EasyMock
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Before
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.JmDNSTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.ServiceInfoTest: can't find referenced class org.junit.Before
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.ServiceInfoTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.ServiceInfoTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.ServiceInfoTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.ServiceInfoTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.ServiceInfoTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.ServiceInfoTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.ServiceInfoTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.ServiceInfoTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.ServiceInfoTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.TextUpdateTest: can't find referenced class org.junit.Before
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.TextUpdateTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.TextUpdateTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: javax.jmdns.test.TextUpdateTest: can't find referenced class org.junit.Test
[2016-12-06 12:46:55 - progurdProgurdAndroid]       You should check if you need to specify additional program jars.
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: there were 105 unresolved references to classes or interfaces.
[2016-12-06 12:46:55 - progurdProgurdAndroid]          You may need to specify additional library jars (using '-libraryjars').
[2016-12-06 12:46:55 - progurdProgurdAndroid] Warning: there were 5 unresolved references to program class members.
[2016-12-06 12:46:55 - progurdProgurdAndroid]          Your input classes appear to be inconsistent.
[2016-12-06 12:46:55 - progurdProgurdAndroid]          You may need to recompile them and try again.
[2016-12-06 12:46:55 - progurdProgurdAndroid]          Alternatively, you may have to specify the option 
[2016-12-06 12:46:55 - progurdProgurdAndroid]          '-dontskipnonpubliclibraryclassmembers'.
[2016-12-06 12:46:55 - progurdProgurdAndroid] java.io.IOException: Please correct the above warnings first.
[2016-12-06 12:46:55 - progurdProgurdAndroid]   at proguard.Initializer.execute(Initializer.java:321)
[2016-12-06 12:46:55 - progurdProgurdAndroid]   at proguard.ProGuard.initialize(ProGuard.java:211)
[2016-12-06 12:46:55 - progurdProgurdAndroid]   at proguard.ProGuard.execute(ProGuard.java:86)
[2016-12-06 12:46:55 - progurdProgurdAndroid]   at proguard.ProGuard.main(ProGuard.java:492)

【问题讨论】:

【参考方案1】:

试过了。它工作得很好。从错误日志中可以清楚地看出,没有找到对 awt 和 swing API 的引用。 MobileFirst 不会在其项目中捆绑这些依赖项。请检查添加到项目中的库或依赖项。

【讨论】:

谢谢S.A.诺顿斯坦利

以上是关于MobileFirst 7.1 Progurd 获取错误返回代码 1的主要内容,如果未能解决你的问题,请参考以下文章

MobileFirst 7.1 Studio - 服务器无法启动

MobileFirst 7.1 - 如何将 CLI 用于当前安装的带有 MobileFirst 服务器的 Liberty Core

启动 MobileFirst 7.1 CLI 服务器时出错

mobilefirst 7.1身份验证不起作用

MobileFirst 7.1 构建所有环境未创建 android 文件夹

将项目从 WorkLight 6.2 升级到 MobileFirst 7.1