Revision: 282
Author:
limpb...@gmail.com
Date: Tue Jul 31 10:48:41 2012
Log: Edited wiki page Troubleshooting through web user interface.
http://code.google.com/p/vogar/source/detail?r=282
Modified:
/wiki/Troubleshooting.wiki
=======================================
--- /wiki/Troubleshooting.wiki Tue Jun 29 11:51:53 2010
+++ /wiki/Troubleshooting.wiki Tue Jul 31 10:48:41 2012
@@ -17,3 +17,23 @@
Then try running the target again and Vogar will recursively search the
directory given for classes and packages that match the one you're missing.
You may add multiple jar search dirs if there are multiple places from
which you commonly draw jars.
Note that this won't catch all missing dependencies, but can help in some
simple cases.
+
+===No classes in package: libcore.net.http.URLConnectionTest;===
+
+Dx silently ignores `.class` files compiled with Java 7 and above. This
leads to a runtime error like the following:
+
+{{{
+ java.lang.IllegalArgumentException: No classes in package:
libcore.net.http.URLConnectionTest; classpath is
[/sdcard/vogar/run/libcore.net.http.URLConnectionTest.dex.jar,
/sdcard/vogar/run/mockwebserver-20120731.dex.jar,
/sdcard/vogar/run/okhttp-0.8-SNAPSHOT.dex.jar,
/sdcard/vogar/run/vogar.dex.jar]
+ at vogar.target.ClassFinder.find(ClassFinder.java:43)
+ at vogar.target.TestRunner.run(TestRunner.java:197)
+ at vogar.target.TestRunner.run(TestRunner.java:170)
+ at vogar.target.TestRunner.main(TestRunner.java:257)
+ at dalvik.system.NativeStart.main(Native Method)
+ Action libcore.net.http.URLConnectionTest did not complete normally.
+ timedOut=false
+ lastStartedOutcome=null
+ lastFinishedOutcome=null
+ command=adb shell cd
/sdcard/vogar/run/libcore.net.http.URLConnectionTest &&
ANDROID_DATA=/sdcard/vogar dalvikvm -classpath
/sdcard/vogar/run/libcore.net.http.URLConnectionTest.dex.jar:/sdcard/vogar/run/mockwebserver-20120731.dex.jar:/sdcard/vogar/run/okhttp-0.8-SNAPSHOT.dex.jar:/sdcard/vogar/run/vogar.dex.jar
-Djava.io.tmpdir=/sdcard/vogar/run/libcore.net.http.URLConnectionTest
-Duser.home=/sdcard/vogar/run/user.home -Duser.name=root -Duser.language=en
-Duser.region=US -Xverify:none -Xdexopt:none -Xcheck:jni
-Xjnigreflimit:2000 vogar.target.TestRunner
+}}}
+
+Workaround this by building with a Java 6 compiler.