Uploaded image for project: 'Appcelerator CLI'
  1. Appcelerator CLI
  2. CLI-1304

Android: Adding property encryption policy remote fails the build with java compile error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: CLI Release 7.0.3
    • Component/s: CLI
    • Labels:
      None
    • Environment:
    • Severity:
      Major
    • Sprint:
      2018 Sprint 04 Tooling

      Description

      Thanks Joshua Quick for bringing this issue to my notice.

      Steps to reproduce:

      1. Create a classic or alloy default app for android.
      2. Use this property in your tiapp.xml:

      <property name="appc-sourcecode-encryption-policy" type="string">remote</property>
      

      3. Build the app for android device/emulator.

      Actual results:

      1. The build fails with :

      Yes I see the build error too is it this : 
      [ERROR] :  Failed to compile Java source files:
      [ERROR] :  
      [ERROR] :  /Users/lchoudhary/Desktop/workspaces/workspace_2018/ZZZZ/build/android/gen/com/app/zzzz/ZzzzApplication.java:207: error: cannot find symbol
      [ERROR] :   public void setCurrentActivity(Activity callingActivity, Activity activity) {
      [ERROR] :                                  ^
      [ERROR] :    symbol:   class Activity
      [ERROR] :    location: class ZzzzApplication
      [ERROR] :  /Users/lchoudhary/Desktop/workspaces/workspace_2018/ZZZZ/build/android/gen/com/app/zzzz/ZzzzApplication.java:207: error: cannot find symbol
      [ERROR] :   public void setCurrentActivity(Activity callingActivity, Activity activity) {
      [ERROR] :                                                            ^
      [ERROR] :    symbol:   class Activity
      [ERROR] :    location: class ZzzzApplication
      [ERROR] :  Note: /Users/lchoudhary/Desktop/workspaces/workspace_2018/ZZZZ/build/android/gen/com/app/zzzz/ZzzzApplication.java uses unchecked or unsafe operations.
      [ERROR] :  Note: Recompile with -Xlint:unchecked for details.
      [ERROR] :  2 errors
      [ERROR] Application Installer abnormal process termination. Process exit value was 1
      

      Expected result:

      1. The build should not fail.

        Attachments

          Activity

            People

            • Assignee:
              fmiao Feon Sua Xin Miao
              Reporter:
              lchoudhary Lokesh Choudhary
              Reviewer:
              Joshua Quick
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code