在ECLIPSE导出example的DEMO,不能生成APK

kan180
2018-10-13 00:57 1.1k 0

连上手机,在eclipse里都可以正常使用极光推送的demo包,也可以正常收发推送消息,但是导出APK时,提示如下错误,导致不能生成APK.
Proguard returned with error code 1. See console
[2018-10-13 08:42:31 - kelafun] Warning: cn.jiguang.a.a.c.g: can't find referenced method 'boolean areNotificationsEnabled()' in class android.app.NotificationManager
[2018-10-13 08:42:31 - kelafun] Warning: there were 1 unresolved references to program class members.
[2018-10-13 08:42:31 - kelafun] Your input classes appear to be inconsistent.
[2018-10-13 08:42:31 - kelafun] You may need to recompile them and try again.
[2018-10-13 08:42:31 - kelafun] Alternatively, you may have to specify the option
[2018-10-13 08:42:31 - kelafun] '-dontskipnonpubliclibraryclassmembers'.
[2018-10-13 08:42:31 - kelafun] java.io.IOException: Please correct the above warnings first.
[2018-10-13 08:42:31 - kelafun] at proguard.Initializer.execute(Initializer.java:321)
[2018-10-13 08:42:31 - kelafun] at proguard.ProGuard.initialize(ProGuard.java:211)
[2018-10-13 08:42:31 - kelafun] at proguard.ProGuard.execute(ProGuard.java:86)
[2018-10-13 08:42:31 - kelafun] at proguard.ProGuard.main(ProGuard.java:492)

1个回答

热门排序
  • kan180
    2018-10-13 03:12
    在网上查资料好像解决了问题。就是在proguard-project.txt文件里加了一行:proguard-project.txt,可以顺利打包签名APK了,但是出现更蛋疼的问题,在极光后台推送的消息,居然收不到了!真是头疼,请各位大侠帮助 展示全部