Could not compile mobile applications because ANE are not recognized
Hi everyone
I have this flex mobile application and I can't make it compile.
When i execute "gradle compileFlex" i got the error
Definition ie.jampot.nativeExtensions:MobileBackup could not be found.
turn that this class came from a ANE that I put in a directory and also I defined the extensionDir as shown
airMobile { extensionDir = 'src/main/extensions' platform = 'ios' target = 'ipa-debug' }
Can someone exaplin what am I doing wrong...
Regards!
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Yennick Trevels on 29 Jun, 2017 07:37 PM
Your code snipped looks ok.
When using ANE's you also have to declare them in your application descriptor file:
com.example.MyExtension
For more info see Adobe's documentation: http://help.adobe.com/en_US/air/build/WS597e5dadb9cc1e0253f7d2fc131...
2 Posted by Pablo Lamberti on 29 Jun, 2017 07:53 PM
Hi!
Sure I did declare them on the app.xml file!
I have five ANE's and no one are recognized
Support Staff 3 Posted by Yennick Trevels on 02 Jul, 2017 11:44 AM
"extensionDir" is used during the packaging phase by adt. However, during the compilation phase the mxmlc/compc compiler also needs to know the class. Therefore you also have to specify it as a dependency (notice the 'ext' property):
4 Posted by Pablo Lamberti on 03 Jul, 2017 08:24 PM
It make sense!
But from where does gradle resolve the dependencies?
Do I need to upload the ane files to a binaries repository?
Support Staff 5 Posted by Yennick Trevels on 03 Jul, 2017 08:53 PM
by default Grade will pull the dependencies from a remote ivy/maven repository.
However, you can also define file-based dependencies which resolve to a file in your project folder.
6 Posted by Pablo Lamberti on 03 Jul, 2017 09:17 PM
It worked!
I uploaded the ane files to my company binaries repository
now it worked! Thanks
BTW, i hace another problem but i will start a different topic