Announcement Announcement Module
Collapse
No announcement yet.
Greenhouse Android build fails Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Greenhouse Android build fails

    Hi,

    I'm trying to run the Greenhouse Android (https://github.com/SpringSource/greenhouse-android) project locally.

    I'm following the README step-by-step. When I get to "mvn clean install" the build fails. As far as I can see, this project has not been updated to use the new structure of Spring Social or am I missing something? Are there any plans to update the Android project in the near future?

    When I run "mvn clean install" I get the following response:

    Code:
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Compilation failure
    
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/connect/GreenhouseApiAdapter.java:[18,33] cannot find symbol
    symbol  : class BadCredentialsException
    location: package org.springframework.social
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[28,40] cannot find symbol
    symbol  : class AbstractOAuth1ApiTemplate
    location: package org.springframework.social.oauth1
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[35,40] cannot find symbol
    symbol: class AbstractOAuth1ApiTemplate
    public class GreenhouseTemplate extends AbstractOAuth1ApiTemplate implements Greenhouse {
    /home/heinrich/dev/samples/greenhouse-android/src/com/springsource/greenhouse/AbstractGreenhouseActivity.java:[104,54] cannot find symbol
    symbol  : method removeConnectionsToProvider(java.lang.String)
    location: interface org.springframework.social.connect.ConnectionRepository
    /home/heinrich/dev/samples/greenhouse-android/src/com/springsource/greenhouse/MainApplication.java:[103,34] cannot find symbol
    symbol  : method findPrimaryConnectionToApi(java.lang.Class<org.springframework.social.greenhouse.api.Greenhouse>)
    location: interface org.springframework.social.connect.ConnectionRepository
    /home/heinrich/dev/samples/greenhouse-android/src/com/springsource/greenhouse/AbstractGreenhouseListActivity.java:[104,54] cannot find symbol
    symbol  : method removeConnectionsToProvider(java.lang.String)
    location: interface org.springframework.social.connect.ConnectionRepository
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/connect/GreenhouseServiceProvider.java:[41,9] incompatible types
    found   : org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
    required: org.springframework.social.greenhouse.api.Greenhouse
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/connect/GreenhouseApiAdapter.java:[35,11] cannot find symbol
    symbol  : class BadCredentialsException
    location: class org.springframework.social.greenhouse.connect.GreenhouseApiAdapter
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[35,7] org.springframework.social.greenhouse.api.impl.GreenhouseTemplate is not abstract and does not override abstract method isAuthorizedForUser() in org.springframework.social.greenhouse.api.Greenhouse
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[58,2] cannot find symbol
    symbol  : method getRestTemplate()
    location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[81,45] cannot find symbol
    symbol  : method getRestTemplate()
    location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[97,41] cannot find symbol
    symbol  : method getRestTemplate()
    location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[97,60] cannot find symbol
    symbol  : method isAuthorizedForUser()
    location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[97,24] internal error; cannot instantiate UserTemplate(org.springframework.web.client.RestTemplate,boolean,java.lang.String) at org.springframework.social.greenhouse.api.impl.UserTemplate to ()
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[98,43] cannot find symbol
    symbol  : method getRestTemplate()
    location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[98,62] cannot find symbol
    symbol  : method isAuthorizedForUser()
    location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[98,25] internal error; cannot instantiate EventTemplate(org.springframework.web.client.RestTemplate,boolean,java.lang.String) at org.springframework.social.greenhouse.api.impl.EventTemplate to ()
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[99,47] cannot find symbol
    symbol  : method getRestTemplate()
    location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[99,66] cannot find symbol
    symbol  : method isAuthorizedForUser()
    location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[99,27] internal error; cannot instantiate SessionTemplate(org.springframework.web.client.RestTemplate,boolean,java.lang.String) at org.springframework.social.greenhouse.api.impl.SessionTemplate to ()
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[100,43] cannot find symbol
    symbol  : method getRestTemplate()
    location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[100,62] cannot find symbol
    symbol  : method isAuthorizedForUser()
    location: class org.springframework.social.greenhouse.api.impl.GreenhouseTemplate
    /home/heinrich/dev/samples/greenhouse-android/src/org/springframework/social/greenhouse/api/impl/GreenhouseTemplate.java:[100,25] internal error; cannot instantiate TweetTemplate(org.springframework.web.client.RestTemplate,boolean,java.lang.String) at org.springframework.social.greenhouse.api.impl.TweetTemplate to ()
    /home/heinrich/dev/samples/greenhouse-android/src/com/springsource/greenhouse/MainActivity.java:[87,29] cannot find symbol
    symbol  : method findPrimaryConnectionToApi(java.lang.Class<org.springframework.social.greenhouse.api.Greenhouse>)
    location: interface org.springframework.social.connect.ConnectionRepository
    Thanks,
    Heinrich

  • #2
    Heinrich,

    Roy is in the process of updating Greenhouse for Android to Spring Social 1.0.0.RC1 and Spring Android 1.0.0.M4, the latter which will also be released this week. With Social now at the Release Candidate level, there should be more stability in the reference apps that use it.

    Thanks for your patience -

    Keith

    Comment


    • #3
      Hello Keith,

      Thank you for the feedback.

      At least I got it to compile and run in the mean time. I am looking forward to the official version though.

      Thanks for your hard work.

      Regards,
      Heinrich

      Comment


      • #4
        Hi Heinrich,

        I just pushed changes for the Android client that update it to Spring Social 1.0.0.RC1. The API changed somewhat in that release, so it broke a few places in Greenhouse. Keep in mind that the Android client is still referencing the Spring Android BUILD-SNAPSHOT until 1.0.0.M4 comes out, so there may be additional modifications needed once the release is final. Thanks for the interest, and sorry for the inconvenience.

        -Roy

        Comment

        Working...
        X