Jenis Kasundra Jenis Kasundra - 2 months ago 10
Android Question

Error : The type com.google.protobuf.GeneratedMessage$Builder cannot be resolved. It is indirectly referenced from required .class files

when I use market API(androidmarketapi-0.6.jar).It's showing me error on below code.

Code

String query = "maps";
AppsRequest appsRequest = AppsRequest.newBuilder()
.setQuery(query).setStartIndex(0).setEntriesCount(10)
.setWithExtendedInfo(true).build();


Error


The type com.google.protobuf.GeneratedMessage$Builder cannot be
resolved. It is indirectly referenced from required .class files


screen shot

enter image description here

I had try clean project many times but error is not solve.Thanks in Advance.

Answer

It means: "A class that you use needs another class that is not on the classpath." You should make sure to add the required jar to the classpath.

EDIT:

You do not need to do anything specific for this. Since you mentioned that you are using Android Play, the update notification is taken care of by Google Play.

You need to just update the APK with higher versionCode and Google Play should do the rest.

BUT MAKE SURE:

  • Notifications in Google Play - Settings is ticked.
  • Background date in your phone Settings - Accounts and sync is ticked.