Run configuration will not work under 2026.2.2

Answered

I have an app which is an extension of a third party app.  I used to build using ANT and then debug it by specifying the third party app as the target and when it loaded my app I could debug it as normal.
I have upgraded the build to Gradle and tried to run it, however, this does not work.  In the run configuration I have the third party app defined as the target but now Idea can not find it.  Even though I include the appropriate jars in the classpath (using ‘Modify classpath’) the target class can not be found.
Is there something in Gradle that Idea uses to determine its class path?  

I also have the same app under an ANT build where Idea can at least find the third party app.  This leads me to the conclusion that it is Gradle that is affecting the run configuration.

0
5 comments

Hi there,

Could you provide your project so that I can take a look? You can share it on GitHub or upload it to our server and share the Upload ID here.

Please also let me know how exactly you run the project in the IDE.

If you run with Gradle, did you try running the same command from the command line outside of IDEA?

0

Hi

I have added to github though I need your user name to share it. I would prefer to have a private conversation rather than put sensitive information on a public forum.  By the way I am away for a week and might not reply until after 15th Sept.

0

Did you have a chance to review the project? Any insights?

0

I have created a separate project from scratch using Gradle as the build tool.  I have stripped out any gradle code not needed and built the app.  In the Run Configuration I set up as shown 

Notice the Red outline of the Classname.  I debug anyway and get the message:
 

I click on Continue Anyway and it runs and I can debug.  So as far as the original post is concerned it is solved.  It does raise another issue in that IDEA Run Configuration screen  is not using the Class Path modifiers to find the class.

Thank you to those who responded.
Regards
Mike

0

Please sign in to leave a comment.