简体   繁体   English

是否可以将gradle Library项目集成到android项目

[英]Is it possible to integrate a gradle Library project to an android Project

First of all I'm new to Gradle and I've a limited knowledge in it. 首先,我是Gradle的新手,对此我了解有限。

I've an android project. 我有一个android项目。 What I need is to integrate a Gradle library project with my project. 我需要将Gradle库项目与我的项目集成在一起。

So my question is, IS it possible to add Gradle library project with an android Project without converting the android project to Gradle Project??? 所以我的问题是,是否可以将android项目添加到Gradle库项目而无需将android项目转换为Gradle项目???

Can any one Help me to find the solution? 谁能帮我找到解决方案? I'm using eclipse as the tool. 我正在使用eclipse作为工具。

Thanks in advance!!! 提前致谢!!!

Yes. 是。 you can do it 你能行的

Try these methods 试试这些方法

Method1 : Manually reconfigure your gradle based library project folder structure like your regular eclipse projects 方法1 :手动重新配置基于gradle的库项目文件夹结构,如常规的Eclipse项目

Method2 : Import project then Properties > java build path > source tab....remove path to src....add path to java folder in the source code using add folder button... then build your project as usual 方法2 :导入项目,然后导入属性> Java构建路径>源选项卡...。删除src的路径。...使用添加文件夹按钮在源代码中添加Java文件夹的路径...然后照常构建项目

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM