{ "id": "170809", "key": "TIMOB-25973", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2018-01-17T08:39:36.000+0000", "priority": null, "labels": [ "engSchedule" ], "versions": [], "issuelinks": [ { "id": "56460", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "171526", "key": "TISTUD-9062", "fields": { "summary": "Android: Packaging android modules shows error mark next to project even though no error.", "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" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-09-24T15:46:08.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Whenever you create a new module, after the first compilation it will show an error. However, the error is only shown on the main icon of the Project Explorer, but not in the rest of the project, making difficult or impossible to know what happened\r\n\r\nTo reproduce, just create a new module for Android with Ti SDK 7.0.1 and compile without modifying anything.", "attachment": [ { "id": "64767", "filename": "screenshot-1.png", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2018-01-29T13:05:10.000+0000", "size": 1755, "mimeType": "image/png" }, { "id": "64769", "filename": "screenshot-2.png", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2018-01-29T13:21:09.000+0000", "size": 73904, "mimeType": "image/png" }, { "id": "64770", "filename": "screenshot-3.png", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2018-01-29T13:21:46.000+0000", "size": 11334, "mimeType": "image/png" }, { "id": "64771", "filename": "screenshot-4.png", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2018-01-29T13:23:28.000+0000", "size": 63900, "mimeType": "image/png" }, { "id": "64780", "filename": "screenshot-5.png", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2018-01-30T12:24:05.000+0000", "size": 8311, "mimeType": "image/png" }, { "id": "64768", "filename": "testbuild.zip", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2018-01-29T13:06:44.000+0000", "size": 5027558, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Unknown error when packaging modules", "creator": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "subtasks": [], "reporter": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "environment": "macOS Sierra (10.12.6)\r\nAppcelerator Studio 5.0.0 (latest)\r\nTitanium SDK 7.0.1 (latest)\r\nAndroid SDK latest version", "comment": { "comments": [ { "id": "433242", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~dfalcon],\r\nThanks for sharing with us. Which version of ndk you are using? It would be be better if you can share the error logs here.\r\n\r\nBest\r\n\r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2018-01-17T09:43:15.000+0000", "updated": "2018-01-17T09:43:15.000+0000" }, { "id": "433246", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "body": "Hi Mostafizur Rahman,\r\n\r\nI'm using android-ndk-r15b. The curious thing... is that there is no error log. The Appc. Studio tells you that there is an error, and if you want to continue anyway. After that the module just compiles and works most of the time.", "updateAuthor": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2018-01-17T10:01:38.000+0000", "updated": "2018-01-17T10:01:38.000+0000" }, { "id": "433252", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey Daniel, does this also occur when building through the CLI (appc run -p android --build-only) ? Also, if possible, can you confidentially share the module source in case it's not OSS?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-17T14:33:39.000+0000", "updated": "2018-01-17T14:33:39.000+0000" }, { "id": "433797", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "body": "Sorry for the late answer. This is what I did:\r\n\r\n1. In Appcelerator Studio: File > New > Mobile Module Project.\r\n2. Entered \"testbuild\" as project name. Entered \"test.build\" as module ID. Selected 7.0.1.GA as SDK version. Deployment target: Android.\r\n3. Did not fill any parameter for the manifest file, just pressed \"Next >\"\r\n4. Install platforms I have the Latest installed version: 8.1.0. Just pressed \"Finish\"\r\n--\r\n5. Right clicked on the module, Publish > Package - Android Module\r\n6. Selected my modules location and pressed \"Finish\".\r\n7. No errors in compiling, the module packaged successfully.\r\n--\r\n8. Now, in my project list, the project appears to be wrong. \r\n !screenshot-1.png|thumbnail! \r\n\r\nYou can do this by yourselves, just by creating a new module and compiling without modifying anything, but just in case, I've uploaded the source of the project.\r\n [^testbuild.zip] ", "updateAuthor": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2018-01-29T13:07:32.000+0000", "updated": "2018-01-29T13:07:32.000+0000" }, { "id": "433798", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This looks like a Studio issue then. Can you expand the project to see where exactly the error is located at?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-29T13:15:16.000+0000", "updated": "2018-01-29T13:15:16.000+0000" }, { "id": "433799", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "body": "Hi Hans,\r\n\r\nYeah, this is what the project looks like when opened (as you can see only a warning on bootstrap.js file)\r\n !screenshot-2.png|thumbnail! \r\n\r\nThis is the warning line in bootstrap.js\r\n !screenshot-3.png|thumbnail! \r\n\r\nSo, apparently there are no errors in there, but the main project is shown as it has any error. In fact, after the first packaging, if you try to package again, this popup appears:\r\n !screenshot-4.png|thumbnail! ", "updateAuthor": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2018-01-29T13:23:31.000+0000", "updated": "2018-01-29T13:23:31.000+0000" }, { "id": "433810", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~dfalcon] I took the same module project and imported into my workspace and built it - it doesn't show any error while building for the second time.\r\n\r\nTo understand more about the issue, can you check the exact error message which is shown on the project. Please follow this.\r\n\r\n1. Open \"Problems\" View: Go to \"Window\" Menu -> Show View -> Other -> General -> Select \"Problems\" -> Click on \"Open\"\r\n2. Now the project error will be shown in the Problem View\r\n\r\nPlease add the error message to the ticket.\r\n\r\n\r\n", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-01-30T02:13:30.000+0000", "updated": "2018-01-30T02:13:30.000+0000" }, { "id": "433828", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "body": "Hi Kondal,\r\n\r\nI did as suggested and found out this:\r\n\r\nDescription: Project 'testbuild' is missing required source folder: 'android/build/.apt_generated'\r\nResource: testbuild\r\nPath: \r\nLocation: Build path\r\nType: Build Path Problem\r\n\r\nDescription: The project cannot be built until build path errors are resolved\r\nResource: testbuild\r\nLocation: Unknown\r\nType: Java Problem\r\n\r\nDo this tell you something? Please do note that this is happening since the update from SDK 6.3.0 to SDK 7.0.0 (still happening in 7.0.1).\r\n\r\nThanks.\r\n", "updateAuthor": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2018-01-30T12:28:11.000+0000", "updated": "2018-01-30T12:28:11.000+0000" }, { "id": "433922", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hknoechel] [~gmathews] I think you guys are the experts in this area.\r\n\r\nHere is the actual error.\r\n\r\n{code:java}\r\nProject 'testbuild' is missing required source folder: 'android/build/.apt_generated'\r\n{code}\r\n", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-01T03:38:49.000+0000", "updated": "2018-02-01T03:38:49.000+0000" }, { "id": "434218", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~dfalcon] Can you check this https://stackoverflow.com/questions/9595486/what-is-.apt_generated-folder-in-web-project\r\n\r\nThis folder is created if and only if you have \"Annotation Processing\" enabled on the project. See Project Properties > Java Compiler > Annotation Processing. Make sure none of them enabled for error here.", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-08T04:51:01.000+0000", "updated": "2018-02-08T04:51:01.000+0000" }, { "id": "434229", "author": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "body": "Hi Kondal,\r\n\r\nTried unchecking the Annotation Processing and almost everything else in there.\r\n\r\nAfter re-building, cleaning project, restarting studio, etc., the problem is still there.\r\n\r\nThis error is not a critical thing... but annoying.", "updateAuthor": { "name": "dfalcon", "key": "dfalcon", "displayName": "Daniel Falcon", "active": true, "timeZone": "Europe/Zurich" }, "created": "2018-02-08T08:03:44.000+0000", "updated": "2018-02-08T08:03:44.000+0000" }, { "id": "436962", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Here is the quick workaround to remove the error from the project:\r\n# Right-click on the project\r\n# Select \"Properties\"\r\n# Select \"Java Build Path\" from the right side tree\r\n# Select \"Source\" tab\r\n# Select \"/android/build/.apt_generated(missing)\" entry from the list\r\n# Click on the \"Remove\" button\r\n\r\nAlternatively, you can also remove the below entry from the {{.classpath}} file to resolve the error\r\n\r\n{code:java}\r\n\r\n{code}\r\n", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-04-18T09:25:53.000+0000", "updated": "2018-04-18T09:25:53.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }