Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23708] Hyperloop: Android aar without asset folder fails compiling

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-07-30T14:52:48.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.0, hyperloop 1.2.5
ComponentsAndroid, Hyperloop
Labelsaar, android, hyperloop, needTestCase
ReporterMichael Gangolf
AssigneeChristopher Williams
Created2016-07-30T14:21:45.000+0000
Updated2016-09-08T22:45:18.000+0000

Description

Including an .aar file which doesn't have an assets folder fails compiling with the following error:
[ERROR] Failed to extract/handle aar zip: /Users/appdev/Development/Titanium_Workspace/Active/hyperloopFCM/platform/android/firebasemessaging.aar
[ERROR] An error occurred during build after 1s 594ms
[ERROR] ENOENT, stat '/Users/appdev/Development/Titanium_Workspace/Active/hyperloopFCM/build/hyperloop/android/firebasemessaging/assets'
Used aar: Firebase-messaging 9.2.1 from the google sdk (/extras/google/m2repository/com/google/firebase/firebase-messaging/) hyperloop 1.2.0.Beta SDK 5.4.0 Android 6.0.1

Comments

  1. Hans Knöchel 2016-07-30

    PR: https://github.com/appcelerator/hyperloop.next/pull/44
  2. Hans Knöchel 2016-08-01

    [~michael] Would you be so kind and write-down a simple "steps to test" here, so our QE can verify the fix?
  3. Michael Gangolf 2016-08-01

    *Testcase:* Copy AndroidSDK/extras/google/m2repository/com/google/firebase/firebase-messaging/9.2.1/firebase-messaging-9.2.1.aar to apps/platform/android and try to compile the app. It will stop compiling with the error message above. The include code when it is extracted would be:
       var FirebaseInstanceId = require('com.google.firebase.iid.FirebaseInstanceId');
       
  4. Lokesh Choudhary 2016-09-08

    Verified the fix. Compile completes successfully for android aar without asset folder. Closing. Environment: Appc Studio : 4.8.0.201609061702 Ti SDK : 6.0.0.v20160908065418 Ti CLI : 5.0.9 Alloy : 1.9.1 MAC El Capitan : 10.11.6 Appc NPM : 4.2.8-6 Appc CLI : 6.0.0-38 Node: 4.4.4 Nexus 6 - Android 6.0.1

JSON Source