{"action":"created","issue":{"url":"https://api.github.com/repos/robovm/robovm-robopods/issues/106","repository_url":"https://api.github.com/repos/robovm/robovm-robopods","labels_url":"https://api.github.com/repos/robovm/robovm-robopods/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/robovm/robovm-robopods/issues/106/comments","events_url":"https://api.github.com/repos/robovm/robovm-robopods/issues/106/events","html_url":"https://github.com/robovm/robovm-robopods/issues/106","id":139871596,"number":106,"title":"Problem getting the settings robopod to work","user":{"login":"AgrarPirat","id":8950110,"avatar_url":"https://avatars.githubusercontent.com/u/8950110?v=3","gravatar_id":"","url":"https://api.github.com/users/AgrarPirat","html_url":"https://github.com/AgrarPirat","followers_url":"https://api.github.com/users/AgrarPirat/followers","following_url":"https://api.github.com/users/AgrarPirat/following{/other_user}","gists_url":"https://api.github.com/users/AgrarPirat/gists{/gist_id}","starred_url":"https://api.github.com/users/AgrarPirat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgrarPirat/subscriptions","organizations_url":"https://api.github.com/users/AgrarPirat/orgs","repos_url":"https://api.github.com/users/AgrarPirat/repos","events_url":"https://api.github.com/users/AgrarPirat/events{/privacy}","received_events_url":"https://api.github.com/users/AgrarPirat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-10T12:23:49Z","updated_at":"2016-03-10T15:06:44Z","closed_at":null,"body":"Hello RoboVM Team,\r\n\r\nI just tried to add the new settings robopod (1.14.0) to an existing project. While looking at the source of the settings example, I've noticed the following two lines of code at line [9 and 18 in MainActivity.java](https://github.com/robovm/robovm-samples/blob/snapshot/robopods/plugins/robo.settings/android/src/main/java/org/robovm/samples/robopods/settings/MainActivity.java)\r\n```\r\nimport org.robovm.pods.android.AndroidConfig;\r\n...\r\nAndroidConfig.setLaunchActivity(this);\r\n```\r\n\r\nNow the problem is, that `import org.robovm.pods.android.AndroidConfig;` can't be found if it's added to the import statements at the projects main activity (android). Instead there seems to be a class `org.robovm.pods.AndroidConfig;`, but it seems to be empty, which causes the compiler to throw an error at: `AndroidConfig.setLaunchActivity(this);`\r\n\r\nSo I just tried to simply remove the two lines, which causes the app to compile, but crash because of:\r\n```\r\n  java.lang.AssertionError: java.lang.reflect.InvocationTargetException\r\n            at org.robovm.pods.Platform.constructInstance(Platform.java:117)\r\n            at org.robovm.pods.Platform.getInstance(Platform.java:79)\r\n            at org.robovm.pods.Platform.getInstance(Platform.java:62)\r\n            at org.robovm.pods.settings.Settings.<init>(Settings.java:20)\r\n            at com.someapp.controller.AppSettings.<init>(AppSettings.java:72)\r\n            at com.someapp.controller.AppSettings.getInstance(AppSettings.java:106)\r\n            at com.someapp.WelcomeActivity.onCreate(WelcomeActivity.java:43)\r\n            at android.app.Activity.performCreate(Activity.java:6251)\r\n            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)\r\n            at android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:148)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n     Caused by: java.lang.reflect.InvocationTargetException\r\n            at java.lang.reflect.Constructor.newInstance(Native Method)\r\n            at org.robovm.pods.Platform.constructInstance(Platform.java:111)\r\n            at org.robovm.pods.Platform.getInstance(Platform.java:79)\r\n            at org.robovm.pods.Platform.getInstance(Platform.java:62)\r\n            at org.robovm.pods.settings.Settings.<init>(Settings.java:20)\r\n            at com.someapp.controller.AppSettings.<init>(AppSettings.java:72)\r\n            at com.someapp.controller.AppSettings.getInstance(AppSettings.java:106)\r\n            at com.someapp.WelcomeActivity.onCreate(WelcomeActivity.java:43)\r\n            at android.app.Activity.performCreate(Activity.java:6251)\r\n            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)\r\n            at android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:148)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.SharedPreferences android.app.Activity.getSharedPreferences(java.lang.String, int)' on a null object reference\r\n            at org.robovm.pods.settings.AndroidSettings.setActivity(AndroidSettings.java:22)\r\n            at org.robovm.pods.settings.AndroidSettings.<init>(AndroidSettings.java:18)\r\n            at java.lang.reflect.Constructor.newInstance(Native Method)\r\n            at org.robovm.pods.Platform.constructInstance(Platform.java:111)\r\n            at org.robovm.pods.Platform.getInstance(Platform.java:79)\r\n            at org.robovm.pods.Platform.getInstance(Platform.java:62)\r\n            at org.robovm.pods.settings.Settings.<init>(Settings.java:20)\r\n            at com.someapp.controller.AppSettings.<init>(AppSettings.java:72)\r\n            at com.someapp.controller.AppSettings.getInstance(AppSettings.java:106)\r\n            at com.someapp.WelcomeActivity.onCreate(WelcomeActivity.java:43)\r\n            at android.app.Activity.performCreate(Activity.java:6251)\r\n            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)\r\n            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)\r\n            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)\r\n            at android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)\r\n            at android.os.Handler.dispatchMessage(Handler.java:102)\r\n            at android.os.Looper.loop(Looper.java:148)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n```\r\n\r\nThis indicates that the call of `AndroidConfig.setLaunchActivity(this);` is required (well..., a pure guess). Do you have any ideas what could be wrong here? The dependencies in the build.gradle files look like this:\r\nCore:\r\n`compile 'org.robovm:robopods-settings-core:1.14.0'`\r\nAndroid:\r\n`compile 'org.robovm:robopods-settings-android:1.14.0'`\r\niOS:\r\n`compile 'org.robovm:robopods-settings-ios:1.14.0'`\r\n\r\nI couldn't figure out what's wrong here, by just looking at the example code, so any advice how to get the settings robopod running is welcome.\r\nThank you.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/robovm/robovm-robopods/issues/comments/194891563","html_url":"https://github.com/robovm/robovm-robopods/issues/106#issuecomment-194891563","issue_url":"https://api.github.com/repos/robovm/robovm-robopods/issues/106","id":194891563,"user":{"login":"AgrarPirat","id":8950110,"avatar_url":"https://avatars.githubusercontent.com/u/8950110?v=3","gravatar_id":"","url":"https://api.github.com/users/AgrarPirat","html_url":"https://github.com/AgrarPirat","followers_url":"https://api.github.com/users/AgrarPirat/followers","following_url":"https://api.github.com/users/AgrarPirat/following{/other_user}","gists_url":"https://api.github.com/users/AgrarPirat/gists{/gist_id}","starred_url":"https://api.github.com/users/AgrarPirat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgrarPirat/subscriptions","organizations_url":"https://api.github.com/users/AgrarPirat/orgs","repos_url":"https://api.github.com/users/AgrarPirat/repos","events_url":"https://api.github.com/users/AgrarPirat/events{/privacy}","received_events_url":"https://api.github.com/users/AgrarPirat/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T15:06:44Z","updated_at":"2016-03-10T15:06:44Z","body":"Thanks for the quick reply. I've changed the dependencies to:\r\nCore:\r\n`compile 'org.robovm:robopods-settings-core:1.14.1-SNAPSHOT'`\r\nAndroid:\r\n`compile 'org.robovm:robopods-settings-android:1.14.1-SNAPSHOT'`\r\niOS:\r\n`compile 'org.robovm:robopods-settings-ios:1.14.1-SNAPSHOT'`\r\n\r\nBut this causes the following errors:\r\n```\r\nError:Failed to resolve: org.robovm:robopods-settings-core:1.14.1-SNAPSHOT\r\nFailed to resolve: org.robovm:robopods-settings-android:1.14.1-SNAPSHOT\r\n```\r\nIs there a special repository needed to access the snapshot?"}}