{"action":"created","issue":{"url":"https://api.github.com/repos/libgdx/gdx-pay/issues/114","repository_url":"https://api.github.com/repos/libgdx/gdx-pay","labels_url":"https://api.github.com/repos/libgdx/gdx-pay/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/gdx-pay/issues/114/comments","events_url":"https://api.github.com/repos/libgdx/gdx-pay/issues/114/events","html_url":"https://github.com/libgdx/gdx-pay/issues/114","id":172978123,"number":114,"title":"Android Failed to Bind to Service","user":{"login":"zfreeds","id":19233251,"avatar_url":"https://avatars.githubusercontent.com/u/19233251?v=3","gravatar_id":"","url":"https://api.github.com/users/zfreeds","html_url":"https://github.com/zfreeds","followers_url":"https://api.github.com/users/zfreeds/followers","following_url":"https://api.github.com/users/zfreeds/following{/other_user}","gists_url":"https://api.github.com/users/zfreeds/gists{/gist_id}","starred_url":"https://api.github.com/users/zfreeds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zfreeds/subscriptions","organizations_url":"https://api.github.com/users/zfreeds/orgs","repos_url":"https://api.github.com/users/zfreeds/repos","events_url":"https://api.github.com/users/zfreeds/events{/privacy}","received_events_url":"https://api.github.com/users/zfreeds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-08-24T15:08:31Z","updated_at":"2016-08-25T16:15:18Z","closed_at":null,"body":"When I try to implement GDX Pay, it works fine with ios but gives me an error message when I try to run it on android.\r\n\r\n`- error installing purchase manager: com.badlogic.gdx.pay.android.googleplay.GdxPayException: Failed to bind to service\r\n08-24 11:07:23.162 3097-3124/com.mygdx.game W/System.err: com.badlogic.gdx.pay.android.googleplay.GdxPayException: Failed to bind to service\r\n08-24 11:07:23.164 3097-3124/com.mygdx.game W/System.err:     at com.badlogic.gdx.pay.android.googleplay.AndroidGooglePlayPurchaseManager$1.disconnected(AndroidGooglePlayPurchaseManager.java:119)\r\n08-24 11:07:23.164 3097-3124/com.mygdx.game W/System.err:     at com.badlogic.gdx.pay.android.googleplay.billing.V3GoogleInAppBillingService.bindBillingServiceConnectionToActivity(V3GoogleInAppBillingService.java:111)\r\n08-24 11:07:23.164 3097-3124/com.mygdx.game W/System.err:     at com.badlogic.gdx.pay.android.googleplay.billing.V3GoogleInAppBillingService.reconnectToHandleDeadObjectExceptions(V3GoogleInAppBillingService.java:183)\r\n08-24 11:07:23.164 3097-3124/com.mygdx.game W/System.err:     at com.badlogic.gdx.pay.android.googleplay.billing.V3GoogleInAppBillingService.internalStartPurchaseRequest(V3GoogleInAppBillingService.java:158)\r\n08-24 11:07:23.164 3097-3124/com.mygdx.game W/System.err:     at com.badlogic.gdx.pay.android.googleplay.billing.V3GoogleInAppBillingService.startPurchaseRequest(V3GoogleInAppBillingService.java:139)\r\n08-24 11:07:23.164 3097-3124/com.mygdx.game W/System.err:     at com.badlogic.gdx.pay.android.googleplay.AndroidGooglePlayPurchaseManager.purchase(AndroidGooglePlayPurchaseManager.java:196)\r\n08-24 11:07:23.164 3097-3124/com.mygdx.game W/System.err:     at com.badlogic.gdx.pay.PurchaseSystem.purchase(PurchaseSystem.java:148)\r\n08-24 11:07:23.164 3097-3124/com.mygdx.game W/System.err:     at com.mygdx.game.GDXPay.buyItem(GDXPay.java:154)\r\n08-24 11:07:23.165 3097-3124/com.mygdx.game W/System.err:     at com.mygdx.game.states.CharacterSelectionState.handleInput(CharacterSelectionState.java:133)\r\n08-24 11:07:23.165 3097-3124/com.mygdx.game W/System.err:     at com.mygdx.game.states.CharacterSelectionState.update(CharacterSelectionState.java:147)\r\n08-24 11:07:23.165 3097-3124/com.mygdx.game W/System.err:     at com.mygdx.game.states.Hud.update(Hud.java:94)\r\n08-24 11:07:23.165 3097-3124/com.mygdx.game W/System.err:     at com.mygdx.game.states.GameStateManager.update(GameStateManager.java:162)\r\n08-24 11:07:23.165 3097-3124/com.mygdx.game W/System.err:     at com.mygdx.game.KangarooGame.render(KangarooGame.java:73)\r\n08-24 11:07:23.166 3097-3124/com.mygdx.game W/System.err:     at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:459)\r\n08-24 11:07:23.166 3097-3124/com.mygdx.game W/System.err:     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)\r\n08-24 11:07:23.166 3097-3124/com.mygdx.game W/System.err:     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)\r\n08-24 11:07:23.180 3097-3124/com.mygdx.game W/System.err: Caused by: com.badlogic.gdx.pay.android.googleplay.GdxPayException: bindService() returns false.\r\n08-24 11:07:23.180 3097-3124/com.mygdx.game W/System.err: \t... 15 more`"},"comment":{"url":"https://api.github.com/repos/libgdx/gdx-pay/issues/comments/242447240","html_url":"https://github.com/libgdx/gdx-pay/issues/114#issuecomment-242447240","issue_url":"https://api.github.com/repos/libgdx/gdx-pay/issues/114","id":242447240,"user":{"login":"keesvandieren","id":863966,"avatar_url":"https://avatars.githubusercontent.com/u/863966?v=3","gravatar_id":"","url":"https://api.github.com/users/keesvandieren","html_url":"https://github.com/keesvandieren","followers_url":"https://api.github.com/users/keesvandieren/followers","following_url":"https://api.github.com/users/keesvandieren/following{/other_user}","gists_url":"https://api.github.com/users/keesvandieren/gists{/gist_id}","starred_url":"https://api.github.com/users/keesvandieren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keesvandieren/subscriptions","organizations_url":"https://api.github.com/users/keesvandieren/orgs","repos_url":"https://api.github.com/users/keesvandieren/repos","events_url":"https://api.github.com/users/keesvandieren/events{/privacy}","received_events_url":"https://api.github.com/users/keesvandieren/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T16:15:18Z","updated_at":"2016-08-25T16:15:18Z","body":"Cloned the project, now building it with gradle.\r\n\r\nSteps (cli):\r\n\r\n1. git clone https://github.com/zfreeds/sampleError gdx-pay-sample-error\r\n2. cd gdx-pay-sample-error\r\n2. create a file ./local.properties, and put the sdk.dir property in it, pointing to android sdk dir, e.g. sdk.dir=/path/to/android-sdk-macosx\r\n3. ./gradlew clean && ./gradlew assemble\r\n\r\nNow get the error:\r\n\r\n    Cause: com.android.dex.DexException: Multiple dex files define     Lcom/android/vending/billing/IInAppBillingService;\r\n        UNEXPECTED TOP-LEVEL EXCEPTION:\r\n        com.android.dex.DexException: Multiple dex files define    Lcom/android/vending/billing/IInAppBillingService;\r\n\r\nRoot cause is that you have both openiab and android-googleplay implementations as dependency in android/build.gradle. They are mutually exclusive.\r\n\r\nRemove these dependencies:\r\n\r\n    compile files('src/gdx-pay-android-openiab-0.10.0-library.jar')\r\n    compile files('src/gdx-pay-android-ouya-0.10.0-library.jar')\r\n\r\n\r\nAfter that, compilation fails with:\r\n\r\n\r\n* What went wrong:\r\nCould not resolve all dependencies for configuration ':html:compileClasspath'.\r\n> Could not find validation-api-sources.jar (javax.validation:validation-api:1.0.0.GA).\r\n  Searched in the following locations:\r\n      file:/Users/cvandieren/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\nBUILD FAILED\r\nSo I removed the 'html' module (from settings.gradle and root build.gradle).\r\n\r\nNow Gradle build succeeds.\r\n\r\nNext step is to run the app. Probably the gdx-pay.jar itself is missing?"}}
{"actor":{"display_login":"keesvandieren"}}