Project: appceleratorstudio
Issue TISTUD-5722: Build failed when running Android app in Debug mode
1. Create a default mobile project in studio. 2. Install a distribution APK on device. 3. *Don't* uninstall the distribution app from the device. Run the app in debug mode on device. 4. It shows "Build failed" message during the installing step. The log message is {code} !ENTRY org.eclipse.debug.core 4 125 2013-11-14 15:20:23.526 !MESSAGE Error logged from Debug Core: !STACK 0 java.lang.ClassCastException: org.eclipse.debug.core.Launch cannot be cast to org.eclipse.debug.core.model.IProcess com.appcelerator.titanium.android.internal.ui.DebugLaunchStatusHandler.handleStatus(DebugLaunchStatusHandler.java:29) com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate.cleanUp(AndroidInstallerLaunchConfigurationDelegate.java:114) com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate.access$0(AndroidInstallerLaunchConfigurationDelegate.java:105) com.appcelerator.titanium.android.core.launching.AndroidInstallerLaunchConfigurationDelegate$TitaniumDeployListener.error(AndroidInstallerLaunchConfigurationDelegate.java:94) com.appcelerator.titanium.core.internal.cli.TitaniumDeployManager.fireError(TitaniumDeployManager.java:67) com.appcelerator.titanium.core.internal.cli.TitaniumDeployManager.fireError(TitaniumDeployManager.java:59) com.appcelerator.titanium.android.core.launching.AndroidInstallAppStreamListener.streamAppended(AndroidInstallAppStreamListener.java:85) org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.run(OutputStreamMonitor.java:258) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.notifyAppend(OutputStreamMonitor.java:268) org.eclipse.debug.internal.core.OutputStreamMonitor.fireStreamAppended(OutputStreamMonitor.java:117) org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:157) org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:135) org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:208) java.lang.Thread.run(Thread.java:680) {code}
Story points: 3