jeudi 14 juin 2012

[Titanium Studio] erreur emulateur android dans /builder.py

si à la compilation du projet, avant le test dans l'émulateur android, vous avez une erreur du type :

builder.py", line 1587, in s.build_and_run(False,avd_id) File "/home/****/.titanium/mobilesdk/linux/1.6.0/android/builder.py", line 1480, in build_and_run launched, launch_failed = self.package_and_deploy() File "/home/***/.titanium/mobilesdk/linux/1.6.0/android/builder.py", line 1112, in package_and_deploy output = run.run([self.jarsigner, '-storepass', self.keystore_pass, '-keystore', self.keystore, '-signedjar', app_apk, unsigned_apk, self.keystore_alias]) File "/home/***/.titanium/mobilesdk/linux/1.6.0/android/run.py", line 36, in run (so,se) = subprocess.Popen(args, stderr=subprocess.PIPE, stdout=subprocess.PIPE).communicate() File "/usr/lib/python2.6/subprocess.py", line 633, in init errread, errwrite) File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory


faites :
cd /usr/bin

localiser le fichier jarsigned correspondant au java jdk 1.6.0.31 puis :
ln -s /usr/lib/jvm/jdk1.6.0_31/bin/jarsigner jarsigner

voilà ...