android - The system cannot find the file specified "classes.dex" -
android - The system cannot find the file specified "classes.dex" -
i have developed android module project , deployed in titanium project. when run titanium project getting err frequently
[info] logfile = c:\ws\testw2\build.log [info] building testw2 android ... 1 moment [info] titanium sdk version: 3.0.0 (12/12/12 18:49 a5894b3) [info] fastdev server running, deploying in fastdev mode [info] copying commonjs modules... [info] copying project resources.. [info] tiapp.xml unchanged, skipping class generation [info] forcefulness including modules... [info] compiling javascript resources ... [info] compiling localization files [error] application installer abnormal process termination. process exit value 1 [error] exception occured while building android project: [error] traceback (most recent phone call last): [error] file "c:\users\administrator\appdata\roaming\titanium\mobilesdk\win32\3.0.0.ga\android\builder.py", line 2376, in <module> [error] builder.build_and_run(false, avd_id, debugger_host=debugger_host) [error] file "c:\users\administrator\appdata\roaming\titanium\mobilesdk\win32\3.0.0.ga\android\builder.py", line 2192, in build_and_run [error] launched, launch_failed = self.package_and_deploy() [error] file "c:\users\administrator\appdata\roaming\titanium\mobilesdk\win32\3.0.0.ga\android\builder.py", line 1688, in package_and_deploy [error] unsigned_apk = self.create_unsigned_apk(ap_) [error] file "c:\users\administrator\appdata\roaming\titanium\mobilesdk\win32\3.0.0.ga\android\builder.py", line 1559, in create_unsigned_apk [error] apk_zip.write(self.classes_dex, 'classes.dex') [error] file "c:\python27\lib\zipfile.py", line 1031, in write [error] st = os.stat(filename) [error] windowserror: [error 2] scheme cannot find file specified: 'c:\\ws\\testw2\\build\\android\\bin\\classes.dex'
after manully removed build folder , run, getting bellow err
[info] logfile = c:\ws\testw2\build.log [info] building testw2 android ... 1 moment [info] titanium sdk version: 3.0.0 (12/12/12 18:49 a5894b3) [info] fastdev server running, deploying in fastdev mode [info] copying commonjs modules... [info] copying project resources.. [info] detected alter in tiapp.xml, or assets deleted. forcing total re-build... [info] forcefulness including modules... [info] forcefulness including modules... [info] compiling javascript resources ... [info] compiling localization files [info] compiling android resources... take time [error] application installer abnormal process termination. process exit value 1 [error] [error] unexpected top-level exception: [error] java.lang.illegalargumentexception: added: lorg/apache/commons/codec/binary/base64; [error] @ com.android.dx.dex.file.classdefssection.add(classdefssection.java:123) [error] @ com.android.dx.dex.file.dexfile.add(dexfile.java:143) [error] @ com.android.dx.command.dexer.main.processclass(main.java:301) [error] @ com.android.dx.command.dexer.main.processfilebytes(main.java:278) [error] @ com.android.dx.command.dexer.main.access$100(main.java:56) [error] @ com.android.dx.command.dexer.main$1.processfilebytes(main.java:229) [error] @ com.android.dx.cf.direct.classpathopener.processarchive(classpathopener.java:244) [error] @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:130) [error] @ com.android.dx.cf.direct.classpathopener.process(classpathopener.java:108) [error] @ com.android.dx.command.dexer.main.processone(main.java:247) [error] @ com.android.dx.command.dexer.main.processallfiles(main.java:183) [error] @ com.android.dx.command.dexer.main.run(main.java:139) [error] @ com.android.dx.command.dexer.main.main(main.java:120) [error] @ com.android.dx.command.main.main(main.java:89) [error] [error] unexpected top-level exception: [error] java.lang.illegalargumentexception: added: lorg/apache/http/entity/mime/content/stringbody; [error] @ com.android.dx.dex.file.classdefssection.add(classdefssection.java:123) [error] @ com.android.dx.dex.file.dexfile.add(dexfile.java:143) [error] @ com.android.dx.command.dexer.main.processclass(main.java:301) [error] @ com.android.dx.command.dexer.main.processfilebytes(main.java:278) [error] @ com.android.dx.command.dexer.main.access$100(main.java:56) [error] @ com.android.dx.command.dexer.main$1.processfilebytes(main.java:229) [error] @ com.android.dx.cf.direct.classpathopener.processarchive(classpathopener.java:244) [error] @ com.android.dx.cf.direct.classpathopener.processone(classpathopener.java:130) [error] @ com.android.dx.cf.direct.classpathopener.process(classpathopener.java:108) [error] @ com.android.dx.command.dexer.main.processone(main.java:247) [error] @ com.android.dx.command.dexer.main.processallfiles(main.java:183) [error] @ com.android.dx.command.dexer.main.run(main.java:139) [error] @ com.android.dx.command.dexer.main.main(main.java:120) [error] @ com.android.dx.command.main.main(main.java:89) [error] 2 errors; aborting [error] scheme error while compiling android classes.dex
for others having same or similar issue:
[error] unexpected top-level exception:
[error] java.lang.illegalargumentexception: added: lorg/apache/commons/codec/binary/base64;
means added library module provided android or titanium itself. remove these additional libraries , seek recompile everything.
additional info on using external libs in titanium module available here: http://developer.appcelerator.com/blog/2011/11/integrating-an-external-library-in-an-android-module.html
android titanium appcelerator titanium-mobile titanium-modules
Comments
Post a Comment