{ "id": "118315", "key": "AC-1772", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-08-12T18:21:52.000+0000", "created": "2013-08-12T12:21:14.000+0000", "labels": [ "mobilesdk", "module", "module.py", "titanium" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:39.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I am working on an Android module in Titanium Studio which uses a third party jar library. When I build the project using the build.xml file with install target, first it gives the warning:\r\n\r\n{code}warning: Ignoring InnerClasses attribute for an anonymous inner class{code}\r\n\r\nand then it gives a build failed error:\r\n\r\n{code}[exec] [ERROR] (com.aspire.vending.c.c) that doesn't come with an\r\n[exec] [ERROR] associated EnclosingMethod attribute. This class was probably produced by a\r\n[exec] [ERROR] compiler that did not target the modern .class file format. The recommended\r\n[exec] [ERROR] solution is to recompile the class from source, using an up-to-date compiler\r\n[exec] [ERROR] and without specifying any \"-target\" type options. The consequence of ignoring\r\n[exec] [ERROR] this warning is that reflective operations on this class will incorrectly\r\n[exec] [ERROR] indicate that it is *not* an inner class.\r\n[exec] [ERROR] System Error while compiling Android classes.dex\r\n[exec] [ERROR] Build Failed.{code}\r\n\r\nNote: When I use this library in eclipse in an Android sample example application it works fine.\r\n\r\nI put the jar file in lib folder and set the build path from the project properties \"java build path setting -> add jars\" option.\r\n\r\nI also tried just referring the path of the file on my disk drive using \"java build path setting -> add Add External jars\" option but it is gives the same error.", "attachment": [ { "id": "41522", "filename": "errorlog.rtf", "author": { "name": "noorazmi", "key": "noorazmi", "displayName": "Noor Alam", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-12T12:21:14.000+0000", "size": 63282, "mimeType": "text/rtf" } ], "flagged": false, "summary": "Android: Cannot compile a third party Java library in a Titanium Module", "creator": { "name": "noorazmi", "key": "noorazmi", "displayName": "Noor Alam", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "noorazmi", "key": "noorazmi", "displayName": "Noor Alam", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android, Titanium Mobile SDK, Modules", "comment": { "comments": [ { "id": "266002", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Noor,\r\n\r\nIt would be great if you could create a simple reproducible test case for this (adding the library to a new empty Android module), or at least some steps to reproduce, along with which third party library you're using.\r\n\r\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-12T18:21:52.000+0000", "updated": "2013-08-12T18:21:52.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }