如何与QUOT;链接到其他位置(链接的文件夹)QUOT; Android Studio中喜欢在Eclipse? [英] How to "Link to alternative location (Linked Folder)" in Android Studio like in Eclipse?

查看:190
本文介绍了如何与QUOT;链接到其他位置(链接的文件夹)QUOT; Android Studio中喜欢在Eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 JNI 文件夹的Eclipse项目,并在JNI文件夹我与本地C ++类的文件夹(名为CDVS_evaluation_framework)链接。
如何做好Android Studio中同样没有副本(控制版)的所有CDVS_evaluation_framework文件夹?
非常感谢。

I have Eclipse project with jni folder and in the jni folder I link a folder (named CDVS_evaluation_framework) with my native C++ classes. How to do the same in Android Studio without copy all CDVS_evaluation_framework folder (under control version) ? thanks a lot.

推荐答案

可惜的是IntelliJ IDEA的不具有创建链接的功能。

Unfortunatelly IntelliJ IDEA doesn't have feature of creating links.

我认为你需要一个内容根添加到您的模块。您的应用程序只需单击鼠标右键,选择打开模块设置选项(或preSS键盘上的F4)。之后,在第项目设置 - > 模块点击 +添加内容根并指定JNI的东西目录

I think that you need to add a content root to your module. Just right-click on your application and choose "Open Module Settings" option (or press F4 on your keyboard). After that in section Project Settings->Modules Click + Add Content Root and specify your JNI-stuff directory.

另一种方法是修改的build.gradle 文件,以使人们有可能找到你的JNI code盘根目录下。

Other way is to modify build.gradle file to make it possible to find the root directory of your JNI code.

这篇关于如何与QUOT;链接到其他位置(链接的文件夹)QUOT; Android Studio中喜欢在Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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