如何导入Java包在Android的工作室 [英] How to import a java package in Android Studio

查看:204
本文介绍了如何导入Java包在Android的工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新android系统中,我想导入jfftpack我的机器人工作室安达项目,我不知道如何将其导入。

I'm new in android, and I want to import the jfftpack to my project in android studio anda i don't know how to import it.

原来的code是进口ca.uol.aig.realdoublefft和I'don't知道从哪里把java文件。我试图将它们付诸libs文件夹。

The original code was import ca.uol.aig.realdoublefft and I'don't know where to put the java files. I've tried to put them to a libs folder.

这里的jfftpack源$ C ​​$ C:

here's the jfftpack source code:

推荐答案

如果这是现有的code库,我建议增加一个模块吧。也许最简单的方法是使用文件菜单命令添加新的模块,让它创建一个简单的Java(非Android)模块你,删除它把进入模块的样品类,然后在复制文件到它并调整它。该模块向导会照顾设置的目录和你建立的文件,你可以看它以后,看到什么了。

If it's an existing code library, I'd recommend adding a module for it. Probably the easiest way is to use the File menu command to add a new module, let it create a plain Java (non-Android) module for you, remove the sample class it puts into the module, and then copy your files over into it and tweak it. The module wizard will take care of setting up the directories and build files for you, and you can look at it later and see what did.

这篇关于如何导入Java包在Android的工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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