由于jill.rar + jack.rar,Android构建失败 [英] Android build failure because of jill.rar + jack.rar

查看:82
本文介绍了由于jill.rar + jack.rar,Android构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此答案的启发,我正在使用:

Inspired by this answer, I'm using:

java -jar %BUILDTOOLSPATH%\jill.jar --output classes.jayce src

java -jar %BUILDTOOLSPATH%\jack.jar --import classes.jayce --output-dex .

在Windows上构建Android应用.

to build an Android app, on Windows.

我得到:

无法加载文件'classes.jayce',条目'/dom\domain\main.jayce':类型错误在'文件'classes.jayce'中,条目'/dom\domain\main.jayce'中,找到'Ldom/domain/main;'而期待"Ldom \ domain \ main;"

Failed to load file 'classes.jayce', entry '/dom\domain\main.jayce': Wrong type in 'file 'classes.jayce', entry '/dom\domain\main.jayce'', found 'Ldom/domain/main;' while expecting 'Ldom\domain\main;'

这似乎是Windows的 \ /问题.该如何解决?

This seems to be a \ or / Windows problem. How to solve this?

注意:这是完整的源代码.我的目标是准备使用Android"Hello World"应用程序,可从命令行进行编译,而无需使用IDE(例如Android Studio).

Note: Here is the full source code. My goal is to have a ready to use Android "Hello World" app, compilable from command-line without using an IDE (such as Android Studio) at all.

推荐答案

似乎您被文件夹浏览结构所困扰.对于基于Linux/Unix的系统和Windows,它有所不同.Windows使用反斜杠来分隔文件路径中的目录,而linux则使用正斜杠来分隔文件路径.

Seems like you're stuck with the folder browsing structure. Its different for Linux/Unix based systems and Windows. Windows use backward slash to separate directories in file path, where as linux uses forward slash for the same.

引用此链接

在Windows中,反斜杠用于分隔文件路径中的目录(例如:C:\ Program Files \ Common Files \ microsoft shared).在Mac和Unix系统上,正斜杠用于相同的目的(例如:/System/Library/Screen Saver).

In Windows, backslashes are used to separate directories in file paths (ex: C:\Program Files\Common Files\microsoft shared). On Mac and Unix systems, forward slashes are used for the same purpose (ex: /System/Library/Screen Savers).

您引用的指南是基于Linux/Unix的.因此,解决该问题的方法是,无论在哪里找到通过文件路径访问的文件,只需将正斜杠替换为反斜杠即可解决此问题.

The guide you referred is Linux/Unix based. So the solution to your question is that wherever you find some file getting accessed by file path, simply replace the forward slash with backward slash and that should solve this problem.

这篇关于由于jill.rar + jack.rar,Android构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆