{"action":"created","issue":{"url":"https://api.github.com/repos/card-io/card.io-Android-SDK/issues/117","repository_url":"https://api.github.com/repos/card-io/card.io-Android-SDK","labels_url":"https://api.github.com/repos/card-io/card.io-Android-SDK/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/card-io/card.io-Android-SDK/issues/117/comments","events_url":"https://api.github.com/repos/card-io/card.io-Android-SDK/issues/117/events","html_url":"https://github.com/card-io/card.io-Android-SDK/issues/117","id":131124575,"number":117,"title":"Proguard issue: Warning:there were 2 unresolved references to program class members.","user":{"login":"alexblack","id":148930,"avatar_url":"https://avatars.githubusercontent.com/u/148930?v=3","gravatar_id":"","url":"https://api.github.com/users/alexblack","html_url":"https://github.com/alexblack","followers_url":"https://api.github.com/users/alexblack/followers","following_url":"https://api.github.com/users/alexblack/following{/other_user}","gists_url":"https://api.github.com/users/alexblack/gists{/gist_id}","starred_url":"https://api.github.com/users/alexblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexblack/subscriptions","organizations_url":"https://api.github.com/users/alexblack/orgs","repos_url":"https://api.github.com/users/alexblack/repos","events_url":"https://api.github.com/users/alexblack/events{/privacy}","received_events_url":"https://api.github.com/users/alexblack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-03T19:13:22Z","updated_at":"2016-02-05T23:09:55Z","closed_at":null,"body":"I'm unable to build my app when I add card.io.  I'm using Android Studio 1.5.1, building on OSX, targeting SDK 22 (not yet 23 for Marshmallow), building separate APKs for Armeabi, Armeabi-v7a, x86.\r\n\r\n```\r\nWarning:io.card.payment.CardIOActivity: can't find referenced method 'int checkSelfPermission(java.lang.String)' in program class io.card.payment.CardIOActivity\r\nWarning:io.card.payment.CardIOActivity: can't find referenced method 'void requestPermissions(java.lang.String[],int)' in program class io.card.payment.CardIOActivity\r\n ```\r\n\r\n```\r\nWarning:there were 2 unresolved references to program class members.\r\n         Your input classes appear to be inconsistent.\r\n         You may need to recompile the code.\r\n         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)\r\nWarning:Exception while processing task java.io.IOException: Please correct the above warnings first.\r\n:app:transformClassesAndResourcesWithProguardForFreeArmeabiRelease FAILED\r\nError:Execution failed for task ':app:transformClassesAndResourcesWithProguardForFreeArmeabiRelease'.\r\n> java.io.IOException: Please correct the above warnings first.\r\n```\r\n\r\nHere is my proguard file\r\n\r\n```\r\n# Add project specific ProGuard rules here.\r\n# For more details, see http://developer.android.com/guide/developing/tools/proguard.html\r\n\r\n# Uncomment these when DEBUGGING\r\n#-dontobfuscate\r\n#-optimizations !desc/simplification/arithmetic,!field/*,!class/merging/*,!desc/allocation/variable\r\n\r\n# For Crashlytics to work around their bug where they don't deobfuscate exceptions\r\n-keep public class * extends java.lang.Exception\r\n\r\n# iText/droidText/PDF stuff\r\n-keep class com.lowagie.text.** { *; }\r\n# iTextAsian\r\n-keep class com.itextpdf.** { *; }\r\n\r\n# Fix for Samsung Galaxy Lite 4.2.2 bug: https://desc.google.com/p/android/issues/detail?id=78377\r\n-keep class android.support.v7.widget.** { *; }\r\n-keep interface android.support.v7.widget.** { *; }\r\n\r\n# Restoring a stack trace with line numbers\r\n# -renamesourcefileattribute ProGuard (adb: turned this off to improve Fabric issue where \"Proguard\" shows up)\r\n-keepattributes SourceFile,LineNumberTable\r\n\r\n# For PlugPDF and its dependencies\r\n-keep class com.epapyrus.plugpdf.core.** { *; }\r\n-dontwarn fi.harism.**\r\n\r\n# For Parse\r\n-dontwarn com.facebook.**\r\n-keepattributes *Annotation*\r\n-keepattributes Signature\r\n-dontwarn com.squareup.**\r\n-dontwarn okio.**\r\n\r\n# For OpenCSV\r\n-dontwarn com.opencsv.**\r\n\r\n# Universal image loader\r\n-keep class com.nostra13.** { *; }\r\n-keepclassmembers class com.nostra13.** { *; }\r\n\r\n# Keep field names for our DAO objects so we can serialize up to Parse.com nicely\r\n-keepclassmembers class com.aadhk.woinvoice.bean.** { private <fields>; }\r\n\r\n# Fix cause I ripped out org.bouncycastle from DroidText.jar and com.lowagie.text.pdf.fonts.cmaps\r\n-dontwarn com.lowagie.text.pdf.fonts.cmaps.**\r\n-dontwarn repack.org.**\r\n\r\n# Card.io\r\n-keep class io.card.**\r\n-keepclassmembers class io.card.** { *; }\r\n```"},"comment":{"url":"https://api.github.com/repos/card-io/card.io-Android-SDK/issues/comments/180614737","html_url":"https://github.com/card-io/card.io-Android-SDK/issues/117#issuecomment-180614737","issue_url":"https://api.github.com/repos/card-io/card.io-Android-SDK/issues/117","id":180614737,"user":{"login":"alexblack","id":148930,"avatar_url":"https://avatars.githubusercontent.com/u/148930?v=3","gravatar_id":"","url":"https://api.github.com/users/alexblack","html_url":"https://github.com/alexblack","followers_url":"https://api.github.com/users/alexblack/followers","following_url":"https://api.github.com/users/alexblack/following{/other_user}","gists_url":"https://api.github.com/users/alexblack/gists{/gist_id}","starred_url":"https://api.github.com/users/alexblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexblack/subscriptions","organizations_url":"https://api.github.com/users/alexblack/orgs","repos_url":"https://api.github.com/users/alexblack/repos","events_url":"https://api.github.com/users/alexblack/events{/privacy}","received_events_url":"https://api.github.com/users/alexblack/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T23:09:55Z","updated_at":"2016-02-05T23:09:55Z","body":"Cool"}}