piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
07/14/14 08:18 PM (9 years ago)

Scringo android integration help

I used to add scringo to my apps all the time but it's been awhile.. I feel like I'm missing something. When I try to run my app, I get the following errors [2014-07-14 20:02:37 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/android/vending/billing/IInAppBillingService; [2014-07-14 20:02:37 - hackershandbook] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/android/vending/billing/IInAppBillingService; I followed the scringo/buzztouch integration tutorial on their website exactly. No errors in my project until I try to run it in the emulator. I'm using the in app billing plugin if it matters. I couldn't find any duplicated libraries being used.. I noticed in the project.properties file in the Scringo folder, android library is set to "true", which might be a duplication of libraries? But setting this to "false" gives my project all sorts of errors.
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
07/14/14 08:27 PM (9 years ago)
Go figure.. figured it out right after I posted this. Had to delete the in app billing from the src folder in scringo
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/14/14 09:20 PM (9 years ago)
I have to delete the gcm jar in the scringo library to keep it from crashing.never had to delete the in app billing.im guessing if you used nadthevlad in app purchase plugin or your own code, you would need to delete that
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
07/15/14 08:47 PM (9 years ago)
Now I'm getting different errors. 07-15 20:38:45.452: E/AndroidRuntime(31781): FATAL EXCEPTION: Thread-20560 07-15 20:38:45.452: E/AndroidRuntime(31781): Process: com.appname, PID: 31781 07-15 20:38:45.452: E/AndroidRuntime(31781): java.lang.NullPointerException 07-15 20:38:45.452: E/AndroidRuntime(31781): at com.scringo.utils.iabhelper.ScringoBase64.decode(ScringoBase64.java:419) 07-15 20:38:45.452: E/AndroidRuntime(31781): at com.scringo.utils.iabhelper.ScringoSecurity.generatePublicKey(ScringoSecurity.java:81) 07-15 20:38:45.452: E/AndroidRuntime(31781): at com.scringo.utils.iabhelper.ScringoSecurity.verifyPurchase(ScringoSecurity.java:62) 07-15 20:38:45.452: E/AndroidRuntime(31781): at com.scringo.utils.iabhelper.ScringoIabHelper.queryPurchases(ScringoIabHelper.java:1040) 07-15 20:38:45.452: E/AndroidRuntime(31781): at com.scringo.utils.iabhelper.ScringoIabHelper.queryInventory(ScringoIabHelper.java:658) 07-15 20:38:45.452: E/AndroidRuntime(31781): at com.scringo.utils.iabhelper.ScringoIabHelper.queryInventory(ScringoIabHelper.java:614) 07-15 20:38:45.452: E/AndroidRuntime(31781): at com.scringo.utils.iabhelper.ScringoIabHelper$2.run(ScringoIabHelper.java:738) 07-15 20:38:45.452: E/AndroidRuntime(31781): at java.lang.Thread.run(Thread.java:841) Any ideas?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/15/14 09:12 PM (9 years ago)
did you delete the extra gcm.jar in the scringo folder? and did you add the android-support-v4.jar? those steps are needed those errors you're getting have to do with in app purchases. you dont have any in app purchase features at all in your app?
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
07/15/14 09:14 PM (9 years ago)
Yes i've deleted the gcm file in scringo, and added the android support to my main projects lib folder. My app does use in app purchase plugin, which is why I had to remove the in app billing files from the src folder in scringo.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/15/14 10:40 PM (9 years ago)
Yeah Im not sure,ive never used in app purchase before with scringo.I was maybe thinking you just needed to delete the java file in the "gen" folder.i dont know though, im curious.or maybe leave the in app billing in scringo library project and dont add it to your app project. they usually respond in the same day when I have questions if you contact them. Im going to contact them too because I was planning on doing the same thing with some of my apps.let me know if you figure it out first though
 
Joe Sprott
Code is Art
Profile
Posts: 414
Reg: Aug 20, 2011
Melbourne, FL
10,290
like
07/17/14 04:57 AM (9 years ago)
make sure you add the "android support library"in eclipse from the sdk manager and of course "google play services" Joe Sprott Bodacious Media
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
07/17/14 12:49 PM (9 years ago)
Yea I've added both libraries. Tried experimenting with adding/removing from scringo & main project. no luck. E-mailed Ofer @ scringo but still don't have a solution yet. Seems like the in app purchase features from scringo and the one in my app are getting confused, throwing the errors.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/17/14 01:33 PM (9 years ago)
What are the names of the files you deleted from scringo?
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
07/17/14 01:54 PM (9 years ago)
In scringos SRC folder, I deleted the in app billing because it was conflicting with the in app billing already added in my project. I also removed the GCM because I use push notifications and my app project already had that as well.
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/17/14 02:21 PM (9 years ago)
Cool I was going to say Im thinking you would just delete "IInAppBillingService.aidl" from Scringo since thats all you added in your app project. Im going to try to integrate the plugin later today with one of my apps that uses scringo and post back my issues and/or successes, if any.
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
07/20/14 01:09 PM (9 years ago)
Any luck?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
07/20/14 07:40 PM (9 years ago)
I honestly havent tried it yet.Ill post back when I get it done
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.