Home Help Center

ICE Plugin for Android Studio

dakotadelnortedakotadelnorte Member Roberto Orden ErenaOrganization: ZennioProject: Home automation remote
Hi,

The plugin to compile the slice files to Java will be available for Android Studio? Because Google advises the use of Android Studio instead of Eclipse since months ago.

Thank you in advance.

Best regards,

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    We include a Gradle plugin with Ice 3.6b. Android Studio integrates well with gradle. We recommend setting up a gradle project to compile the Slice files with Android Studio. You can try out the Android demos from the Ice 3.6b demo distribution for examples.

    See also:
    Cheers,
    Benoit.
  • dakotadelnortedakotadelnorte Member Roberto Orden ErenaOrganization: ZennioProject: Home automation remote
    Hi,

    Thanks for your fast response.

    It's perfect! But ... the new ICE version cannot support lower version than 4.2, and we should to support since version 4.0 or later.

    Are there any way to use 3.6 with support to Android 4.0 and 4.1?

    Best regards,
  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    Hi,

    I built the android tests from the Ice 3.6b source distribution targeting both API 15 and 16 and was able to run the tests successfully in an emulator. The API level to target for the tests is set in the android/gradle.properties file. I was not able to test on an actual 4.0 or 4.1 device as I did not have one available.

    I would suggest that you give it a try as well.
  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    I should also note that the Gradle Slice Plugin should work with older versions of Ice. You just need to set the iceHome and slice2java properties described here to point at the appropriate Ice installation.

    Note: In final 3.6.0 release only setting iceHome property will be required
Sign In or Register to comment.