Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经创建了钛移动模块项目并将 .zip 文件复制到 /lib 文件夹,并在类路径中添加了条目。我接下来要做的事情是什么以便我可以从 JAR 文件中访问该方法。我应该在哪个文件中编写代码来使用 JAR 的方法。
您需要将 zip 文件复制到钛项目的根文件夹中,而不是 lib 文件夹中。当您运行项目时,它将被解压缩,并将在根文件夹中创建模块文件夹。您应该在 TiApp.xml 文件中有一个条目,如下所示:
<modules> <module> com.test.module </module> </modules>
如果您找到文件夹“yourprojectdirectory->modules->android->com.test.module”,那么我认为一切正常......