Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Android Project with plain Java libraries

$
0
0

Hi everyone.

 

I am developing an Android application, where I want part of project to have as a library (module) in Idea.

 

so one module is Android UI module with Gradle support, and I want to use another module from within the same project, which contains no android code, just lot of java classes. currently I cannot compile this, as I am getting following error:

Gradle: module 'Engine' won't be compiled. Unfortunately you can't have non-Gradle Java module and Android-Gradle module in one project.

 

if I add the module "library" as a module depencency to the "UI" android module, it cannot find the package from the library module.

 

last step is to have a executable java class where I can use classes from library module and use them in the executable java class.

 

how should I set up such project?

 

thank you very much in advance

 

Marek


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>