Kakey
Kakey

Reputation: 4024

Verify error in android

I just converted simple geo java project in to jar file and then added the jar in lib folder in android project.how ever ,when i supposed to run i got the following error.

java.lang.VerifyError: com.simplegeo.client.AbstractSimpleGeoClient

My code is

@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
         SimpleGeoPlacesClient client;
         Log.v("DEBUG INFO","setting up client");
         client = SimpleGeoPlacesClient.getInstance();
         client.getHttpClient().setToken("v6twG2W4aHmXk725WryK22wUnXVSmhqT","5wvfksDtH8QSMZeKKcDXaXC3HVDfJVx2");
         Log.v("DEBUG INFO","client is set");
   }

how to solve this.

Upvotes: 0

Views: 580

Answers (2)

Netverse
Netverse

Reputation: 1189

move your jar file from lib to libs folder.

Upvotes: 0

Matthew
Matthew

Reputation: 44919

You probably need to recompile the jar or run it through dx as per this answer.

Android uses a different class file format. Are you running the 3rd party JAR files through the "dx" tool that ships with the Android SDK?

Upvotes: 1

Related Questions