我正在尝试为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)
Run Code Online (Sandbox Code Playgroud)
我不确定如何解决这个问题.
我刚刚换掉旧的Facebook sdk以获得最新版本.这可能与此有关吗?
bolt库似乎指的是用于构建应用程序的旧Android运行时中不存在的方法和类.当您在具有此运行时的设备上运行应用程序时,这可能会导致问题.您应该考虑针对更新的运行时进行构建.
如果您确定这不是问题,您可以告诉ProGuard继续:
-dontwarn bolts.**
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3100 次 |
| 最近记录: |