I’m having a problem when trying to integrate Urban Airship PUSH notifications in my android app.
I think that I’ve got all my permissions and intent filters in the AndroidManifest set, but the app crashes immediately after trying to set my AirshipConfigOptions like this:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
AirshipConfigOptions options = AirshipConfigOptions.loadDefaultOptions(this);
...
}
My error log says:
java.lang.NoClassDefFoundError: com.urbanairship.AirshipConfigOptions
Any help will be greatly appreciated.
Are you using ProGuard? See this article about configuring ProGuard to work with UrbanAirship.
Are you using ADT r17 or later? Starting from r17, jar files need to be located in “libs” folder, placing them in “lib” won’t work (even though Eclipse indicates no problems). See this article about dependencies in Android projects.