Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3080] SDK configuration not support

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2012-07-18T10:04:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterGnanaoly
AssigneeShak Hossain
Created2012-05-11T02:16:21.000+0000
Updated2016-03-08T07:48:07.000+0000

Description

ENTRY com.appcelerator.titanium.mobile 4 0 2012-05-11 14:34:14.790 !MESSAGE (Build 1.0.0.1334372201) [ERROR] C:\Users\Gnanaoly.SDI\AppData\Local\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1331647813\python\python.exe: can't open file 'C:\Users\Gnanaoly.SDI\AppData\Roaming\Titanium\mobilesdk\win32\2.0.2.v20120510223154\android\avd.py': [Errno 2] No such file or directory !STACK 0 Unexpected character (C) at position 0. at org.json.simple.parser.Yylex.yylex(Yylex.java:611) at org.json.simple.parser.JSONParser.nextToken(JSONParser.java:270) at org.json.simple.parser.JSONParser.parse(JSONParser.java:119) at org.json.simple.parser.JSONParser.parse(JSONParser.java:82) at com.appcelerator.titanium.mobile.android.AndroidSDKLocator.initialize(AndroidSDKLocator.java:129) at com.appcelerator.titanium.mobile.android.AndroidSDKLocator.(AndroidSDKLocator.java:73) at com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage.updateAvailableAndroidSDKCombo(TitaniumPreferencePage.java:557) at com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage.createAndroidGroup(TitaniumPreferencePage.java:385) at com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage.createMobileOptions(TitaniumPreferencePage.java:187) at com.appcelerator.titanium.ui.preferences.TitaniumPreferencePage.createFieldEditors(TitaniumPreferencePage.java:149) at org.eclipse.jface.preference.FieldEditorPreferencePage.createContents(FieldEditorPreferencePage.java:227) at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:232) at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1501) at org.eclipse.jface.preference.PreferenceDialog$14.run(PreferenceDialog.java:1258) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1252) at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:674) at org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:708) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:704) at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:888) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:886) at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1226) at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1251) at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:262) at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:256) at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:433) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757) at org.eclipse.jface.window.Window.runEventLoop(Window.java:825) at org.eclipse.jface.window.Window.open(Window.java:801) at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215) at org.eclipse.ui.internal.handlers.ShowPreferencePageHandler.execute(ShowPreferencePageHandler.java:54) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241) at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

Comments

  1. Junaid Younus 2012-07-17

    Hey Gnanaoly, Can you explain what the issue is here? Why did you get this error? Where did you get this error log from? Can you please elaborate what is happening here? I will move the ticket for the TiStudio team to look into, once I get more info from you. Thanks
  2. Gnanaoly 2012-07-17

    Thanks Junaid Younus, I got the solution for this bug. Just uninstalled and installed again the mobile sdk and Titanium studio also removed the updated version that time. Now it is working properly. I need your support on the following bug. Intent Result Activity return. =============================== The Android intent result activity will get the image objects and image path. But Titanium supporting only for returning the image path . Please review my queries and let me know. Huawei U8650 will returning the image path is null. "It will return the image object." I have explained the both titanium and android code : The Titanium intent result activity not supporting the object return. Titanium code: http://pastie.org/4264311 Android code : Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(camera, TAKE_PHOTO_CODE); /* onActivityResult indent will return the object and Image stored path. The Huawei will return the Image object and it will never allow to store the image to external or internal memory. The Huawei will support only the method 1 */ public void onActivityResult(int requestCode, int resultCode, Intent dataReturnedIntent) { super.onActivityResult(requestCode, resultCode, dataReturnedIntent); String filePath=null; int lastslash; String fileName; Bitmap mImageBitmap; switch(requestCode) { case TAKE_PHOTO_CODE: if (resultCode == Activity.RESULT_OK) { if(dataReturnedIntent!=null){ /******************************************************************************************************************* * Method 1 * *The following code is supporting the following mobiles Htc EVO4G, Sony, Huawei U8650 and ect., * *****************************************************************************************************************/ Bundle extras = dataReturnedIntent.getExtras();. mImageBitmap = (Bitmap) extras.get("data"); imageView1.setImageBitmap(mImageBitmap); /****************************************************************************************************************/ * Method 2 * * Not supporting the following code for android Huawei U8650. The following code is supporting the * *****************************************************************************************************************/ Uri capturedImage=null; try{ capturedImage =dataReturnedIntent.getData(); // The intent will return the objects and path }catch (Exception e) { e.printStackTrace(); } String strrr= getPath(capturedImage); String str=" "; if(capturedImage!=null){ str=capturedImage.getPath(); lblPath.setText(str); } Log.i("camera", "Selected image: "+str); } } else { Log.i("Camera", "Result code was " + resultCode); } break; }//switch case close } /*********************************************************************************************************/ Thanks,
  3. Junaid Younus 2012-07-18

    Hey Gnanaoly, Please post this in the Community Q&A: http://developer.appcelerator.com/questions/newest I'm afraid we only offer technical support to plan subscribers. If you wish to become a subscriber you can find more information here: http://www.appcelerator.com/plans-pricing I will have to close this ticket, as this is the wrong section. Please post your question on the Q&A, mentioned above. Thanks

JSON Source