Intelij idea does not accept android module at all

Answered

i have an IntelliJ project which has got a Spring boot module and many  kotlin modules which work perfect.

 

i have migrated all gradle scripts(settings and build files) to kotlin dsl and everything is just working fine.

 

it is been 2 day i`am trying to add an Android module to my project but the IDE reacts weirdly!

 

everything is just fine with gradle command line and i am able to access to all tasks , even my android module tasks and android module builds just perfect from command line

 

but when i open intelliJ , it keeps telling me that it has detected android framework , and when i configure it and show it src and assets and other stuff path , it just dont show the module as android module and even sometimes other modules get disappeared from gradle or project  window , but as soon as i comment the include statement of the android module in settings.gradle.kts file , everything gets back to normal and intelliJ recognizes all modules and faucets properly



i have read the intelliJ recommandation about adding faucet , or adding android module or creating a new android project from scratch in IntelliJ.

well adding faucet does not work at all , no matter what faucet i try to add (android , android-gradle , apk) .

adding or importing android module does not work and it acts rediculously and adds other build.gradle and settings.gradle files to the root module.

but when i create new android project from scratch it kind of works, but then i try to add my other modules to the host android module and it goes the same weird path again with all those problems


android sdk is properly installed and recognized

intelliJ version:2018.3.4

android sdk build version : 28.0.3

gradle version:5.1.1

jdk version : 11.0.1

android gradle plugin version : 3.3.0

so as you see everything is up to date

 


i dont know what to do and i dont want to use android studio , because we are XP team and no one is the owner of any module and i want all my modules to be in one place and accessible to everyone

 

 

what to do JetBrains??!?

 

 

0
1 comment

Sounds related to https://youtrack.jetbrains.com/issue/IDEA-122904. If adding Android module via File | New | Module from Existing Sources... action does not help, please file a bug at https://youtrack.jetbrains.com/issues/KT with a sample project to reproduce.

0

Please sign in to leave a comment.