pbreault / adb-idea

A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development.
Apache License 2.0
2.12k stars 257 forks source link

Can't get ApplicationFacets #9

Closed ScottCooper92 closed 8 years ago

ScottCooper92 commented 10 years ago

I've downloaded the source code to tinker around with it but I can't seem to get passed AndroidUtils.getApplicationFacets(project) as it always returns 0.

I can go into Project Settings -> Facets and see a list of them so why aren't they being found?

I know this isn't an issue with your code per se but I was just wondering if you had come across this when developing.

Thanks

pbreault commented 10 years ago

No, I haven't encountered this before.

On what kind of test projects have you tried? My first guess would be that you have application facets in your test project but none of it is an android one?

Sorry for the 2 months delay in the response... Somewhow I realized today that I wasn't a watcher on the project so I never received any notification. I just saw it now because I was fixing compatibility with Android Studio 0.8.10...

ScottCooper92 commented 10 years ago

Thanks for the reply,

The Facets are definitely Android, I've tested this in Intellij and Android Studio and neither seem to work.

Is there a development guide you used to create this plugin? There doesn't seem to be much information as to how the ADT Plugin works.

Thanks

pbreault commented 10 years ago

There isn't any documentation that I know of. The only thing that I found was the source code of the ADT plugin and I am working my way up from there.

But you can always upload your test project somewhere and I could take a look.