Notification of update

I had android studio plugin path in .AndroidStudio3.6 folder. Now, when Android Studio is updated and plugin path is changed to .AndroidStudio4.0 folder. 
The problem is my custom plugin needs this path location for some analysis. But, from the system cache/settings, it is locating the previous .AndroidStudio3.6 path. 

So, I want to change this custom path automatically when any Android Studio update is available. How do I get this update notification from code/message bus? 

4 comments
Comment actions Permalink

Taslima,

In general, you should not refer to that directory using the absolute path - I assume that you've set it somewhere in the plugin's preferences and it didn't get updated automatically, right?

0
Comment actions Permalink

Yes. I have set path like this:

public static final String DummyCrySLPath= PathManager.getPluginsPath()+"\\icognicrypt\\lib\\CrySLRules\\JCA";

It was referring to .AndroidStudio3.6. Now, after update to .AndroidStudio4.0, it's not referring to 4.0 automatically. So, I want to set a condition in my code, if there are any update, it should change the path to updated path.

How should I solve this problem?

0
Comment actions Permalink

This path should be resolved correctly in the runtime depending on the IDE that you use. Do you store such a path anywhere?

I'm sorry, but I have not enough information regarding your issue, so I have to guess which I'd like to avoid.

0
Comment actions Permalink

It takes the path on runtime. But I had to restart Android Studio several times for that. It was stored as persistant component in config.xml. 

0

Please sign in to leave a comment.