GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2013-06-04T21:40:16.000+0000 |
Affected Version/s | Release 3.0.2 |
Fix Version/s | 2013 Sprint 12 JS, 2013 Sprint 12 |
Components | CLI |
Labels | Studio, Titanium, android, triage |
Reporter | Jamie Buckley |
Assignee | Chris Barber |
Created | 2013-03-20T07:22:53.000+0000 |
Updated | 2014-02-24T19:05:37.000+0000 |
I open preference screen and point to the titanium studio to set the sdk and ndk path there. After setting the above path android sdk is not loading. It was wornking in titanium studio 3.0.1.Please see the below attachment of image and diagnostic result.
@Jamie, Could you ask user to run "titanium info -o json -t android" from the command line and see what output it returns? Thanks.
It looks like the Android SDK path was set without error, are there any Android SDKs installed?
You can install Android SDKs using Help > Titanium Studio > Show Titanium Dashboard => Get Started > Configure Native SDKs > Android > Update Android SDK => Select/Install Packages.
According to TISTUD-3884, there should be a warning if no Android SDKs are installed.
I have this issue with another user, and they have the SDKs installed, It worked fine for them with 3.0.1 however when upgrading to 3.0.2 this occured, they installed 3.0.1 again and it resolved the problem. I will have the user run that command Michael and respond with the results.
@Jamie: What are the results of:
@Dustin: still waiting on result from the user.
OS: Windows 7 Home Premium 64-bit Service Pack 1 Titanium Studio: 3.1.0.201304021849 RC Titanium SDK: 3.1.0.v20130403103046 Beta Android SDK: r.21.1 Android Emulator: Google APIs 4.2.2 Unable to Reproduce. I am able to set the Android SDK without error on Windows. This could be an invalid environment issue, or it could have been fixed somewhere. Suggest opening an improvement to implement global environment validation for entire platform.
I am now experiencing this bug when I tried to install today, paths are set correctly, SDKs are installed When I run:
I receive:
Hello When I run this command titanium info -o json -t android It returns C:\Users\263668>titanium info -o json -t android {} C:\Users\263668> C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc \lib\analytics.js:180 sessionCookie = status.cookie.match(/(PHPSESSID= [A-Za-z0-9]+)/), ^ TypeError: Cannot call method 'match' of undefined at C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\node_modules\no de-appc\lib\analytics.js:180:35 at async.parallel (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium \node_modules\async\lib\async.js:476:17) at async.forEach (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium\ node_modules\async\lib\async.js:94:25) at async.parallel (C:\Users\263668\AppData\Roaming\npm\node_modules\titanium \node_modules\async\lib\async.js:473:21) at process.on.async.parallel.osinfo (C:\Users\263668\AppData\Roaming\npm\nod e_modules\titanium\node_modules\node-appc\lib\analytics.js:56:5) at module.exports.getOSInfo (C:\Users\263668\AppData\Roaming\npm\node_module s\titanium\node_modules\node-appc\lib\environ.js:215:4) at ChildProcess.exithandler (child_process.js:538:7) at ChildProcess.EventEmitter.emit (events.js:99:17) at maybeClose (child_process.js:638:16) at Process._handle.onexit (child_process.js:680:5) I am on windows machine. Do I need to do anything else as my I have already set my path to D:\Android\android-sdk\platform-tools;D:\Android\android-sdk\tools
This problem is for CLI only. So I have uninstall CLI using npm uninstall titanium -g command. Then this issue is fixed for windows. So need to fix this CLI issue for windows. @Jamie: Can you please uninstall CLI and confirm this.
Hello Joseph, I have doen the same process but result is same. I am on windows system. In MAC it has no issue.
I tried to reproduce this with the Titanium CLI 3.1.0 and Titanium Studio 3.1.0.201304151600 on Windows 7, but I can't seem to get it to fail. Furthermore, it appears Studio's preference window has changed since the screenshot was taken, so the problem was probably fixed somewhere along the way.
Hello Chris, I have the same problem with Titanium CLI 3.1.0 and Titanium Studio 3.1.0.201304151600 on Windows 8. Here is the response of
Screenshot of the issue is as below: I cannot even configure the new SDK, it says SDK is already updated. Note : Android emulator is running fine when i run it through eclipse on the same SDK path. Let me know if you require more details to dig deep into this issue. !http://s13.postimg.org/gw98k5alj/no_android_sdk.jpg!
i am also stuck with the same problem when i run simple application in titanium i gives [ERROR] : Unable to detect Android SDK targets. [ERROR] Application Installer abnormal process termination. Process exit value was 1 i ran the command ti info -o json -t android then i got the foll. result. { "android": { "sdkPath": "C:\\android-sdk", "java": { "version": "", "build": "" }, "ndk": { "path": "", "version": "" }, "targets": { }, "avds": [ ], "exe": "C:\\android-sdk\\tools\\android.bat. bat" } } please help me i am stuck with it for a many days..
this error got to me when i try to runnig my app on android emulator No aidl files to compile, continuing [INFO] : No aidl files to compile, continuing [INFO] : Generating i18n files [INFO] : Generating C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\res\values\theme.xml [INFO] : Packaging application: C:\android-sdk-win\build-tools\19.0.1\aapt.exe "package" "-f" "-m" "-J" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\gen" "-M" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\AndroidManifest.xml" "-A" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\bin\assets" "-S" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\res" "-I" "C:\android-sdk-win\platforms\android-19\android.jar" "-I" "C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\titanium.jar" "-F" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\bin\app.ap_" [INFO] : Building Java source files: C:\Program Files\Java\jdk1.7.0_40\bin\javac.exe "-J-Xmx256M" "-encoding" "utf8" "-bootclasspath" "C:\android-sdk-win\platforms\android-19\android.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\kroll-v8.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-network.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\thirdparty.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-xml.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\jaxen-1.1.1.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-analytics.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-android.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\ti-commons-codec-1.3.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\kroll-common.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\titanium.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-app.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-ui.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\android-support-v4.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\nineoldandroids-appc-2.4.0.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-filesystem.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-media.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-locale.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-utils.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-geolocation.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-accelerometer.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-contacts.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-map.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-gesture.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-calendar.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-platform.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\modules\titanium-database.jar;C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\android\lib\titanium-verify.jar;ApplicationStylesheet.class;R.class;TestprojectActivity.class;TestprojectAppInfo.class;TestprojectApplication.class" "-d" "C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\bin\classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@C:\Users\imen\Documents\Titanium_Studio_Workspace\testproject\build\android\java-sources.txt" [ERROR] Application Installer abnormal process termination. Process exit value was 8 C:\Users\imen\AppData\Roaming\npm\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:184 throw e; ^ Error: EPERM, operation not permitted 'C:\Program Files\Fichiers communs' at fs.readdirSync (fs.js:654:18) at scan (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:138:25) at scan (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:150:26) at C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:156:10 at C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:113:8 at q.process (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:731:21) at processImmediate (timers.js:330:15) --------------------------------------------- at async.setImmediate (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:96:15) at C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:696:21 at Array.forEach (native) at _each (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:32:24) at _insert (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:681:11) at q.push (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:708:15) at C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:129:12 at queue.drain (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\node-appc\lib\subprocess.js:108:3) --------------------------------------------- at async.setImmediate (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:96:15) at C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:696:21 at Array.forEach (native) at _each (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:32:24) at _insert (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:681:11) at q.push (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\async\lib\async.js:708:15) at Object.findExecutable (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\node-appc\lib\subprocess.js:113:8) at async.parallel.virtualbox (C:\Users\imen\AppData\Roaming\Titanium\mobilesdk\win32\3.2.1.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js:99:20)