"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?.
请先登录再写评论。
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?
Alex, sure, here are the screenshots, I have no .swc file, only a .ane file:


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.
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/.
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.
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.