How to rectify the errors in the autogenerated IMarketBillingService.java file?

前端 未结 4 1243
难免孤独
难免孤独 2021-01-03 19:13

I am trying to implement In app billing service in my Andorid application.

I\'ve added the IMarketBillingService.aidl file to my project in

4条回答
  •  余生分开走
    2021-01-03 19:48

    Was also getting numerous errors in the generated IInAppBillingService.java. I tried many, many suggested solutions without success. Finally a variant of Zedifire's method worked on my Eclipse SDK. (these steps are from memory - try around until it works!)

    1. turned off >Project>Build Automatically
    2. deleted the /gen files
    3. THEN went to >Window>Preferences>Java>Compiler and found that somehow compliance level had defaulted to 1.5
    4. changed compliance back to level 1.7
    5. >Project>Clean
    6. >Project>Build All (still errors!)
    7. Right clicked on project window >android tools>fix project properties

    VOILA -the generated files finally compiled without the errors!

提交回复
热议问题