我正在尝试为Google Play商店构建我的Android应用的新版本。我收到以下构建错误。
MyApp] Proguard returned with error code 1. See console
MyApp] Warning: bolts.Executors: can't find referenced method 'void allowCoreThreadTimeOut(boolean)' in class java.util.concurrent.ThreadPoolExecutor
MyApp] Warning: bolts.WebViewAppLinkResolver$2$2: can't find referenced class android.webkit.JavascriptInterface
MyApp] You should check if you need to specify additional program jars.
MyApp] Warning: there were 1 unresolved references to classes or interfaces.
MyApp] You may need to specify additional library jars (using '-libraryjars').
MyApp] Warning: there were 1 unresolved references to program class members.
MyApp] Your input classes appear to be inconsistent.
MyApp] You may need to recompile them and try again.
MyApp] Alternatively, you may have to specify the option
MyApp] '-dontskipnonpubliclibraryclassmembers'.
MyApp] java.io.IOException: Please correct the above warnings first.
MyApp] at proguard.Initializer.execute(Initializer.java:321)
MyApp] at proguard.ProGuard.initialize(ProGuard.java:211)
MyApp] at proguard.ProGuard.execute(ProGuard.java:86)
MyApp] at proguard.ProGuard.main(ProGuard.java:492)
我不确定如何解决这个问题。
我做了只是换掉了最新版本的旧Facebook sdk。这可能与此有关吗?
答案 0 :(得分:7)
bolt库似乎指的是用于构建应用程序的旧Android运行时中不存在的方法和类。当您在具有此运行时的设备上运行应用程序时,这可能会导致问题。您应该考虑针对最近的运行时构建并针对其进行构建。
如果您确定它不是问题,您可以告诉ProGuard继续:
-dontwarn bolts.**