java.lang.AssertionError: java.lang.NoSuchMethodException: <init> [interface twitter4j.conf.Configuration,interface twitter4j.auth.Authorization] at twitter4j.TwitterFactory.<clinit>(TwitterFactory.java:73) at com.applicaster.util.twitter.TwitterauthenticationUtil.getServiceInstance(UnkNown Source) at com.applicaster.util.twitter.TwitterauthenticationUtil.logIn(UnkNown Source) at Feed.x.b(UnkNown Source) at Feed.A.onClick(UnkNown Source) at androID.vIEw.VIEw.performClick(VIEw.java:4442) at androID.vIEw.VIEw$PerformClick.run(VIEw.java:18473) at androID.os.Handler.handleCallback(Handler.java:733) at androID.os.Handler.dispatchMessage(Handler.java:95) at androID.os.Looper.loop(Looper.java:136) at androID.app.ActivityThread.main(ActivityThread.java:5105) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792) at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:608) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NoSuchMethodException: <init> [interface twitter4j.conf.Configuration,interface twitter4j.auth.Authorization] at java.lang.class.getConstructorOrMethod(Class.java:472) at java.lang.class.getDeclaredConstructor(Class.java:562) at twitter4j.TwitterFactory.<clinit>(TwitterFactory.java:71) at com.applicaster.util.twitter.TwitterauthenticationUtil.getServiceInstance(UnkNown Source) at com.applicaster.util.twitter.TwitterauthenticationUtil.logIn(UnkNown Source) at Feed.x.b(UnkNown Source) at Feed.A.onClick(UnkNown Source) at androID.vIEw.VIEw.performClick(VIEw.java:4442) at androID.vIEw.VIEw$PerformClick.run(VIEw.java:18473) at androID.os.Handler.handleCallback(Handler.java:733) at androID.os.Handler.dispatchMessage(Handler.java:95) at androID.os.Looper.loop(Looper.java:136) at androID.app.ActivityThread.main(ActivityThread.java:5105) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792) at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:608) at dalvik.system.NativeStart.main(Native Method)
在我的proguard配置(与twitter相关)是:
-dontoptimize -dontpreverify -dontobfuscate -optimizations !code/simplification/arithmetic -allowaccessmodification -repackageclasses '' -keepattributes *Annotation* -keepattributes InnerClasses -keepattributes Signature -keepattributes Exceptions -keepattributes JavaScriptInterface -dontnote -dontwarn twitter4j.** -keep class twitter4j.** -keep public class twitter4j.TwitterFactory -keep interface twitter4j.**
问题是,TwitterFactory没有使用Configuration和Authorization对象作为参数的构造函数.我不知道为什么要寻找这样的方法……
请帮忙?
解决方法 我对Twitter 4j的proguard配置如下: –-dontwarn twitter4j.**-keep class twitter4j.conf.PropertyConfigurationFactory-keep class twitter4j.** { *; }
我也使用编译’org.twitter4j:twitter4j-core:4.0.2′
请让我知道这对你有没有用.
总结以上是内存溢出为你收集整理的与twitter4j的android Proguard混淆全部内容,希望文章能够帮你解决与twitter4j的android Proguard混淆所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)