Skip to main content
Inspiring
March 14, 2013
Answered

Import errors with freshplanet AirAlert.ANE

  • March 14, 2013
  • 1 reply
  • 846 views

I discovered the great Freshplanet ANE repository https://github.com/freshplanet/

I'm trying to get the basic AirAlert to work but I can't work out how to resolve the import.


I build my Adobe AIR iOS app in IntelliJ and this is what I did,

  1. Copied the AirAlert.ane in my ane folder
  2. Included in my App.xml extensions tag the relevant <extensionID>com.freshplanet.AirAlert</extensionID>
  3. Added the ane in the Build Configuration of my project (for the Dependencies to be set in IntelliJ)

But I can't seem to resolve the AirAlert in my code. I tried with no luck both.

import AirAlert;  import com.freshplanet.AirAlert; 

Am I missing something here?

Thanks!

This topic has been closed for replies.
Correct answer mu_a

Fixed! After adding the ANE to all the build configurations under my Module Settings in IntelliJ.

I have about four different configurations, one for deploying to the emulator, one for the device etc and I had only added the ANE to the one deploying to the device as that was where I was interested in testing it.

But after I added it to all the other ones, I could resolve

import com.freshplanet.ane.AirAlert.AirAlert; 

Hope this helps someone!

1 reply

mu_aAuthorCorrect answer
Inspiring
March 14, 2013

Fixed! After adding the ANE to all the build configurations under my Module Settings in IntelliJ.

I have about four different configurations, one for deploying to the emulator, one for the device etc and I had only added the ANE to the one deploying to the device as that was where I was interested in testing it.

But after I added it to all the other ones, I could resolve

import com.freshplanet.ane.AirAlert.AirAlert; 

Hope this helps someone!