Open AgrarPirat opened 8 years ago
The latest version of AndroidConfig
is not empty: Link
Could you try using the snapshot versions instead? This would be 1.14.1-SNAPSHOT
.
Thanks for the quick reply. I've changed the dependencies to:
Core:
compile 'org.robovm:robopods-settings-core:1.14.1-SNAPSHOT'
Android:
compile 'org.robovm:robopods-settings-android:1.14.1-SNAPSHOT'
iOS:
compile 'org.robovm:robopods-settings-ios:1.14.1-SNAPSHOT'
But this causes the following errors:
Error:Failed to resolve: org.robovm:robopods-settings-core:1.14.1-SNAPSHOT
Failed to resolve: org.robovm:robopods-settings-android:1.14.1-SNAPSHOT
Is there a special repository needed to access the snapshot?
Any ideas what could be wrong here?
I have no idea what's wrong here. Neither does my local AndroidConfig contain any code, nor can I access the snapshot version of the robopods. Deleting ~/.robovm and ~/.robovm-sdks didn't change anything. It seems like there's something wrong... maybe in the project structure? or in the build configuration? I don't know! Any advice is appreciated...
Hello RoboVM Team,
I 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
Now 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 classorg.robovm.pods.AndroidConfig;
, but it seems to be empty, which causes the compiler to throw an error at:AndroidConfig.setLaunchActivity(this);
So I just tried to simply remove the two lines, which causes the app to compile, but crash because of:
This 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: Core:compile 'org.robovm:robopods-settings-core:1.14.0'
Android:compile 'org.robovm:robopods-settings-android:1.14.0'
iOS:compile 'org.robovm:robopods-settings-ios:1.14.0'
I 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. Thank you.