Uploaded image for project: 'Appcelerator Modules'
  1. Appcelerator Modules
  2. MOD-2428

Module will not build following update of SDK from 7.0.2 -> 7.1.0+

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      We use ti.goosh module to support GCM/FCM on android see: ti.goosh
      This module has a dependency on ti.playservices and can be built with all current 7.x versions of Ti SDK.

      The problem arises when an updated ti.playservices module is used when attempting to build this module (and likely others).

      We use ti.playservices updated to GPS version 11.8.0 as per this Appcelerator ti.playservices PR PR & JIRA as we need to use the updated google sign in apis provided for in later GPS releases. We have done so for some time, and all worked perfectly up until SDK 7.1.0 was released.

      The module has no compile time incompatibility with updated or deprecated API's in the updated GPS jars/aars and in fact builds perfectly (appc run -p android --build-only) when the updated ti.playservices module is referenced if using SDK 7.0.2.

      When latest 7.1.0/1 SDKs are used the module cannot be built:
      e.g.
      [ERROR] Failed to compile Java source files:
      [ERROR]
      [ERROR] warning: [options] bootstrap class path not set in conjunction with -source 1.7
      [ERROR] Note: [KrollBindingGen] Running Kroll binding generator.
      [ERROR] Note: [KrollBindingGen] No binding data found, creating new data file: org.appcelerator.titanium.bindings/ti.goosh.json
      [ERROR] Note: [KrollBindingGen] Found binding for module TiGoosh
      [ERROR] Note: [KrollBindingGen] Generating JSON: file:/Users/user/workspaces/adhoc/ti.goosh/android/build/generated/json/org/appcelerator/titanium/bindings/ti.goosh.json
      [ERROR] /Users/user/workspaces/adhoc/ti.goosh/android/src/ti/goosh/InstanceIDListener.java:40: error: no suitable constructor found for Intent(InstanceIDListener,Class<RegistrationIntentService>)
      [ERROR] Intent intent = new Intent(this, RegistrationIntentService.class);
      [ERROR] ^
      [ERROR] constructor Intent.Intent(String,Uri) is not applicable
      [ERROR] (argument mismatch; InstanceIDListener cannot be converted to String)
      [ERROR] constructor Intent.Intent(Context,Class<?>) is not applicable
      [ERROR] (argument mismatch; InstanceIDListener cannot be converted to Context)
      [ERROR] /Users/user/workspaces/adhoc/ti.goosh/android/src/ti/goosh/InstanceIDListener.java:41: error: cannot find symbol
      [ERROR] startService(intent);
      [ERROR] ^
      [ERROR] symbol: method startService(Intent)
      [ERROR] location: class InstanceIDListener
      [ERROR] /Users/user/workspaces/adhoc/ti.goosh/android/src/ti/goosh/IntentService.java:84: error: cannot find symbol
      [ERROR] Context context = getApplicationContext();
      [ERROR] ^
      [ERROR] symbol: method getApplicationContext()
      [ERROR] location: class IntentService
      [ERROR] /Users/user/workspaces/adhoc/ti.goosh/android/src/ti/goosh/IntentService.java:151: error: no suitable constructor found for Intent(IntentService,Class<PushHandlerActivity>)
      [ERROR] Intent notificationIntent = new Intent(this, PushHandlerActivity.class);
      [ERROR] ^
      [ERROR] constructor Intent.Intent(String,Uri) is not applicable
      [ERROR] (argument mismatch; IntentService cannot be converted to String)
      [ERROR] constructor Intent.Intent(Context,Class<?>) is not applicable
      [ERROR] (argument mismatch; IntentService cannot be converted to Context)
      [ERROR] /Users/user/workspaces/adhoc/ti.goosh/android/src/ti/goosh/IntentService.java:155: error: incompatible types: IntentService cannot be converted to Context
      [ERROR] PendingIntent contentIntent = PendingIntent.getActivity(this, new Random().nextInt(), notificationIntent, PendingIntent.FLAG_ONE_SHOT);
      [ERROR] ^
      [ERROR] /Users/user/workspaces/adhoc/ti.goosh/android/src/ti/goosh/IntentService.java:391: error: cannot find symbol
      [ERROR] NotificationManager notificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
      [ERROR] ^
      [ERROR] symbol: method getSystemService(String)
      [ERROR] location: class IntentService
      [ERROR] Note: /Users/user/workspaces/adhoc/ti.goosh/android/src/ti/goosh/IntentService.java uses or overrides a deprecated API.
      [ERROR] Note: Recompile with -Xlint:deprecation for details.
      [ERROR] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
      [ERROR] 6 errors

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ybanev Yordan Banev
                Reporter:
                miniman42 Greg
              • Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration