"Class not found" when trying to use an ANE in an Android device.

Hi, I'm getting a runtime error on the Android device as soon as the app starts.

This error says: "[Fault] exception, information=VerifyError: Error #1014: Class com.nativeExtensions.apkExpansionFiles::APKCompleteEvent could not be found."

I'm using an ANE that manages the APK Expansion Files for Android.

AFAIK the ANE is being packaged, I do it by

- project structure -> Android -> gree plus -> find the folder where the ANE's are, add. I'm only adding a folder though, not sure if that's enough.

However, no matter what I try, the error stays the same.

Any ideas?.

6 comments
Comment actions Permalink

Please attach screenshots of Project Structure | Modules | [your Flash module] | [your build configuration subnode] | Dependencies tab and Android tab. Are there any SWC filex except ANE ones in the folder?

0
Comment actions Permalink

Alex, sure, here are the screenshots, I have no .swc file, only a .ane file:

1.png2.png

0
Comment actions Permalink

Alex, since I'm new to the Android development scene, I didn't know I had to manually add the ANE I was using to the xml descriptor file under <extensions>, it works perfectly now, thanks for your time.

0
Comment actions Permalink

BTW what is there in SantillanaANDROID/src/anes folder? If you keep *.ane files there they don't need to be manually included in the package (Files and folders to package on Android tab). Also it would be better to keep *.ane files outside of source root, for example in SantillanaANDROID/anes/.

0
Comment actions Permalink

You are right, there is a .ane file there. You mean the ane files are going to be included even if I don't explicitely include them?.

I thought they behaved like assets.

0
Comment actions Permalink

Yes, you shouldn't explicitly include them. You get nothing except bigger APK size.
And as I mentioned it is not recommended to keep libraries in a source folder.

0

Please sign in to leave a comment.