centsol / marketlicensing

Automatically exported from code.google.com/p/marketlicensing
Apache License 2.0
0 stars 0 forks source link

Error "Could not bind to service" with Google LVL sample code provided by SDK Manager (2.3.3 API 10) #49

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
----What steps will reproduce the problem?----
0. Installed Extras\"Google Play Licensing Library" in Android SDK Manager and 
set it up as a library project in my workspace
1. Made New Android Application 2.3.3 API 10 in Eclipse (for maximum app 
compatibility)
2. added Project Properties -> Android -> Library add 
(android-sdks\extras\google\play_licensing\library)
3. added permission (<uses-permission 
android:name="com.android.vending.CHECK_LICENSE" />) to manifest
4. added to project:
\workspace\play_licensing\sample\src\com\example\android\market\licensing\MainAc
tivity.java
\workspace\play_licensing\sample\res\layout\main.xml
\workspace\play_licensing\sample\res\values\strings.xml
5. Modified code( private static final String BASE64_PUBLIC_KEY = "" ) with my 
Public key from Android Developer Console
6. added Test account to Android Developer Console and signed in using said 
account on AVD & GSII
7. compiled sample code.

----What is the expected output? What do you see instead?----
Expected example app to tell me "Allow the user access" as this would signify a 
successful License Test Response.

Instead app message "Unable to validate license. Check to see if a network 
connection is available."
The error log tells me "Could not bind to service" 
Here is a screenshot shared via Jing containing the state of the LogCat after 
app error http://screencast.com/t/woYCgdteLJL

----What version of the product are you using? On what operating system?----
2.3.3 API 10 in Eclipse & AVD on windows 7 ult 64bit

----Please provide any additional information below.----
I just completed my first app and followed this guide 
(http://developer.android.com/guide/google/play/licensing/adding-licensing.html)
 to add licensing.

When that failed, I decided to test licensing with the sample to determine if 
the problem was with my app or the licensing process itself.

Original issue reported on code.google.com by charc...@gulfgases.com on 13 Jul 2012 at 7:47