{ "id": "173629", "key": "AC-6258", "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": "2019-07-17T22:54:42.000+0000", "created": "2019-05-15T12:34:14.000+0000", "labels": [ "android", "appcelerator", "titanium" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-07-17T22:54:42.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "i am trying to use a fragment using .xml file in appcelerator.but while inflating i am getting the below error \r\n\r\n[ERROR] : TiExceptionHandler: (main) [184,617] /hyperloop/android.view.LayoutInflater.js:390\r\n[ERROR] : TiExceptionHandler: \tvar result = this.$native.callNativeFunction({\r\n[ERROR] : TiExceptionHandler: ^\r\n[ERROR] : TiExceptionHandler: Error: Binary XML file line #6: Binary XML file line #6: Error inflating class fragment\r\n[ERROR] : TiExceptionHandler: at LayoutInflater.inflate (/hyperloop/android.view.LayoutInflater.js:390:28)\r\n[ERROR] : TiExceptionHandler: at new Controller (/alloy/controllers/index.js:62:15)\r\n[ERROR] : TiExceptionHandler: at Object.exports.createController (/alloy.js:339:9)\r\n[ERROR] : TiExceptionHandler: at /app.js:59:7\r\n[ERROR] : TiExceptionHandler: at Module._runScript (ti:/module.js:613:9)\r\n[ERROR] : TiExceptionHandler: at Module.load (ti:/module.js:105:7)\r\n[ERROR] : TiExceptionHandler: at Module.loadJavascriptText (ti:/module.js:457:9)\r\n[ERROR] : TiExceptionHandler: at Module.loadAsFile (ti:/module.js:512:15)\r\n[ERROR] : TiExceptionHandler: at Module.loadAsFileOrDirectory (ti:/module.js:429:20)\r\n[ERROR] : TiExceptionHandler: at Module.require (ti:/module.js:256:17)\r\n[ERROR] : TiExceptionHandler:\r\n[ERROR] : V8Exception: Exception occurred at /hyperloop/android.view.LayoutInflater.js:390: Uncaught Error: Binary XML file line #6: Binary XML file line #6: Error inflating class fragment\r\n\r\njs FIle\r\n\r\nvar OneSDKBuilder = require('com.aol.mobile.sdk.player.OneSDKBuilder');\r\nvar OneSDK = require('com.aol.mobile.sdk.player.OneSDK');\r\nconst Context = require('android.content.Context');\r\nconst Inflater = require('android.view.LayoutInflater');\r\nconst View = require('android.view.View');\r\nconst Activity = require('android.app.Activity');\r\nconst activity = new Activity(Ti.Android.currentActivity);\r\nconst PlayerFragment = require('com.aol.mobile.sdk.player.view.PlayerFragment');\r\nconst Fragment = require('android.app.Fragment');\r\nconst inflater = Inflater.cast(activity.getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE)); \r\nconst resID = activity.getResources().getIdentifier('activity_player', 'layout', activity.getPackageName());\r\nconst view = inflater.inflate(resID, null);\r\n\r\n// const fragment = new PlayerFragment();\r\n // var fm = activity.getFragmentManager();\r\n // fm.beginTransaction()\r\n // .replace(activity.getResources().getIdentifier('frame', 'id', activity.getPackageName()), fragment)\r\n // .commit();\r\n\r\n\r\n\r\nnew OneSDKBuilder(activity.getApplicationContext())\r\n .create(new OneSDKBuilder.Callback({\r\n \r\n onSuccess: function(oneSDK) {\r\n // useSDK(oneSDK, playerFragment);\r\n console.log(\"success Creating SDK\");\r\n },\r\n\r\n \r\n onFailure: function(e) {\r\n console.log(\"Error Creating SDK\"+ e);\r\n }}));\r\n\r\n$.index.open();\r\n\r\nxml file\r\n\r\n\r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n", "attachment": [], "flagged": false, "summary": "Android:Error inflating class fragment", "creator": { "name": "mbhatt33", "key": "mbhatt33", "displayName": "mbhatt33", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "mbhatt33", "key": "mbhatt33", "displayName": "mbhatt33", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "For mac , appcelerator studio version 5.0.0", "comment": { "comments": [ { "id": "448945", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hi [~mbhatt33], Do you still experience the issue? If yes, Can you share complete trace log? Build your project with the command and share the output: *appc run -l trace*\r\nLet us know the update.\r\n\r\nThanks!", "updateAuthor": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-06-09T04:54:56.000+0000", "updated": "2019-06-09T04:54:56.000+0000" }, { "id": "449493", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~mbhatt33],\r\nWe have not heard back from you since our last response.I just wanted to follow up with you about this issue? Are you still experiencing this problem?\r\nPlease let us know if you need more help with this issue.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-06-29T06:56:37.000+0000", "updated": "2019-06-29T06:56:37.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }