{"action":"created","issue":{"url":"https://api.github.com/repos/braintree/braintree_android/issues/34","labels_url":"https://api.github.com/repos/braintree/braintree_android/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/braintree/braintree_android/issues/34/comments","events_url":"https://api.github.com/repos/braintree/braintree_android/issues/34/events","html_url":"https://github.com/braintree/braintree_android/issues/34","id":88350172,"number":34,"title":"GoogleApiAvailabliity class not found","user":{"login":"norman-kapschefsky","id":813760,"avatar_url":"https://avatars.githubusercontent.com/u/813760?v=3","gravatar_id":"","url":"https://api.github.com/users/norman-kapschefsky","html_url":"https://github.com/norman-kapschefsky","followers_url":"https://api.github.com/users/norman-kapschefsky/followers","following_url":"https://api.github.com/users/norman-kapschefsky/following{/other_user}","gists_url":"https://api.github.com/users/norman-kapschefsky/gists{/gist_id}","starred_url":"https://api.github.com/users/norman-kapschefsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norman-kapschefsky/subscriptions","organizations_url":"https://api.github.com/users/norman-kapschefsky/orgs","repos_url":"https://api.github.com/users/norman-kapschefsky/repos","events_url":"https://api.github.com/users/norman-kapschefsky/events{/privacy}","received_events_url":"https://api.github.com/users/norman-kapschefsky/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-15T07:52:36Z","updated_at":"2015-08-06T11:58:09Z","closed_at":"2015-06-15T13:02:56Z","body":"Hi,\r\nsince your last update 2 days ago (1.6) I get a NoClassDefFoundErrorexception on a google service.\r\n\r\nWith version 1.5.1 everything is fine.\r\n\r\nThanks in advance for investigating ...\r\n\r\n```\r\njava.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/GoogleApiAvailability;\r\n            at com.braintreepayments.api.BraintreeApi.isAndroidPayEnabled(BraintreeApi.java:164)\r\n            at com.braintreepayments.api.Braintree.isAndroidPayEnabled(Braintree.java:333)\r\n            at com.braintreepayments.api.dropin.view.PaymentButton.initialize(PaymentButton.java:95)\r\n            at com.braintreepayments.api.dropin.view.PaymentButton.initialize(PaymentButton.java:75)\r\n            at com.braintreepayments.api.dropin.AddPaymentMethodViewController.initViews(AddPaymentMethodViewController.java:69)\r\n            at com.braintreepayments.api.dropin.AddPaymentMethodViewController.<init>(AddPaymentMethodViewController.java:54)\r\n            at com.braintreepayments.api.dropin.BraintreePaymentActivity.initAddPaymentMethodView(BraintreePaymentActivity.java:332)\r\n            at com.braintreepayments.api.dropin.BraintreePaymentActivity.showAddPaymentMethodView(BraintreePaymentActivity.java:323)\r\n            at com.braintreepayments.api.dropin.BraintreePaymentActivity.onPaymentMethodsUpdated(BraintreePaymentActivity.java:205)\r\n            at com.braintreepayments.api.Braintree$12$1.run(Braintree.java:1119)\r\n            at android.os.Handler.handleCallback(Handler.java:739)\r\n            at android.os.Handler.dispatchMessage(Handler.java:95)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5254)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n     Caused by: java.lang.ClassNotFoundException: Didn't find class \"com.google.android.gms.common.GoogleApiAvailability\" on path: DexPathList[[zip file \"/data/app/net.fashionfreax-1/base.apk\"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]\r\n            at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\n            at java.lang.ClassLoader.loadClass(ClassLoader.java:511)\r\n            at java.lang.ClassLoader.loadClass(ClassLoader.java:469)\r\n            at com.braintreepayments.api.BraintreeApi.isAndroidPayEnabled(BraintreeApi.java:164)\r\n            at com.braintreepayments.api.Braintree.isAndroidPayEnabled(Braintree.java:333)\r\n            at com.braintreepayments.api.dropin.view.PaymentButton.initialize(PaymentButton.java:95)\r\n            at com.braintreepayments.api.dropin.view.PaymentButton.initialize(PaymentButton.java:75)\r\n            at com.braintreepayments.api.dropin.AddPaymentMethodViewController.initViews(AddPaymentMethodViewController.java:69)\r\n            at com.braintreepayments.api.dropin.AddPaymentMethodViewController.<init>(AddPaymentMethodViewController.java:54)\r\n            at com.braintreepayments.api.dropin.BraintreePaymentActivity.initAddPaymentMethodView(BraintreePaymentActivity.java:332)\r\n            at com.braintreepayments.api.dropin.BraintreePaymentActivity.showAddPaymentMethodView(BraintreePaymentActivity.java:323)\r\n            at com.braintreepayments.api.dropin.BraintreePaymentActivity.onPaymentMethodsUpdated(BraintreePaymentActivity.java:205)\r\n            at com.braintreepayments.api.Braintree$12$1.run(Braintree.java:1119)\r\n            at android.os.Handler.handleCallback(Handler.java:739)\r\n            at android.os.Handler.dispatchMessage(Handler.java:95)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5254)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n    Suppressed: java.lang.ClassNotFoundException: com.google.android.gms.common.GoogleApiAvailability\r\n            at java.lang.Class.classForName(Native Method)\r\n            at java.lang.BootClassLoader.findClass(ClassLoader.java:781)\r\n            at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)\r\n            at java.lang.ClassLoader.loadClass(ClassLoader.java:504)\r\n            ... 19 more\r\n```"},"comment":{"url":"https://api.github.com/repos/braintree/braintree_android/issues/comments/128342454","html_url":"https://github.com/braintree/braintree_android/issues/34#issuecomment-128342454","issue_url":"https://api.github.com/repos/braintree/braintree_android/issues/34","id":128342454,"user":{"login":"rubinikuttyomkumar","id":4056526,"avatar_url":"https://avatars.githubusercontent.com/u/4056526?v=3","gravatar_id":"","url":"https://api.github.com/users/rubinikuttyomkumar","html_url":"https://github.com/rubinikuttyomkumar","followers_url":"https://api.github.com/users/rubinikuttyomkumar/followers","following_url":"https://api.github.com/users/rubinikuttyomkumar/following{/other_user}","gists_url":"https://api.github.com/users/rubinikuttyomkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/rubinikuttyomkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubinikuttyomkumar/subscriptions","organizations_url":"https://api.github.com/users/rubinikuttyomkumar/orgs","repos_url":"https://api.github.com/users/rubinikuttyomkumar/repos","events_url":"https://api.github.com/users/rubinikuttyomkumar/events{/privacy}","received_events_url":"https://api.github.com/users/rubinikuttyomkumar/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T11:58:09Z","updated_at":"2015-08-06T11:58:09Z","body":"Hi, \r\n It still happens with api build 1.6.4 . \r\nFATAL EXCEPTION: main\r\n    java.lang.NoClassDefFoundError: com.google.android.gms.common.GoogleApiAvailability\r\n            at com.braintreepayments.api.BraintreeApi.isAndroidPayEnabled(BraintreeApi.java:166)\r\n            at com.braintreepayments.api.Braintree.isAndroidPayEnabled(Braintree.java:334)\r\n            at com.braintreepayments.api.dropin.view.PaymentButton.initialize(PaymentButton.java:99)\r\n            at com.braintreepayments.api.dropin.view.PaymentButton.initialize(PaymentButton.java:79)\r\n            at com.braintreepayments.api.dropin.AddPaymentMethodViewController.initViews(AddPaymentMethodViewController.java:74)\r\n            at com.braintreepayments.api.dropin.AddPaymentMethodViewController.<init>(AddPaymentMethodViewController.java:54)\r\n            at com.braintreepayments.api.dropin.BraintreePaymentActivity.initAddPaymentMethodView(BraintreePaymentActivity.java:332)\r\n            at com.braintreepayments.api.dropin.BraintreePaymentActivity.showAddPaymentMethodView(BraintreePaymentActivity.java:323)\r\n            at com.braintreepayments.api.dropin.BraintreePaymentActivity$2$1.run(BraintreePaymentActivity.java:300)\r\n            at android.os.Handler.handleCallback(Handler.java:800)\r\n            at android.os.Handler.dispatchMessage(Handler.java:100)\r\n            at android.os.Looper.loop(Looper.java:194)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5371)\r\n            at java.lang.reflect.Method.invokeNative(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:525)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)\r\n            at dalvik.system.NativeStart.main(Native Method)"}}