我正在尝试创建一个简单的JAR文件,比如here,并在shell中执行它。我被困在这条线上了
dx --dex --output=foo.jar Foo.class当我在CMD中执行这一行时。我总是收到这样的错误
trouble processing:
class name (com/delvix2/Foo) does not match path (C:/somepathhere/classes/com/delvix2/Foo.class)
...while parsing C:/somepathhere/classes/com/delvix2/Foo.class
...while processing C:/somepathhere/classes/com/delvix2/Foo.class
1 warning
no classfiles specified

如何解决此问题?
发布于 2012-11-08 18:06:11
这对我很有效。
dx --dex --output="full path to dex file\file.dex" "c:\.....path to folder which contains the class file only"
First path : dex文件的完整路径,包括所需dex文件的名称
第二个路径:指向“只”包含.class文件的文件夹的路径。
(只给出文件夹的路径,不要给出类文件名)
发布于 2012-01-06 16:06:34
看起来dx希望你给它的类的相对路径与它的包相匹配。试着这样做:
cd c:/somepathhere/classes
dx --dex --output=foo.jar com/delvix2/Foo.class发布于 2012-09-28 04:47:47
使用--no-strict选项:
dx --dex --no-strict --output=foo.jar Foo.classhttps://stackoverflow.com/questions/8754986
复制相似问题