Android res/layout Folder not included in the APK file (but included in the ANE)

拟墨画扇 提交于 2020-01-16 19:57:07

问题


I'm having a problem with resources on an Adobe ANE Android extension:

android.content.res.Resources@NotFoundException: id.myView

I have a xml layout file, which is included in the ANE file (checking by unzipping the ANE file and looking into META-INF/ANE/Android-ARM)

In the APK file (generated with Flash Builder 4.6), the layout folder (inside res) at the top level is missing, but it's included deep in the assets folder:

- META-INF    
- res
    drawable
    drawable-hdpi
    drawable-ldpi
    drawable-mdpi
    raw
- assets
    META-INF
        AIR
            extensions
                org.dornad.ane.MyTestExtension
                    META-INF
                        ANE
                            Android-ARM
                                    drawable-hdpi
                                    drawable-mdpi
                                    drawable-xhdpi
                                    layout
                                    values 

Any ideas?


回答1:


Solved: It was a problem in the Ant Script used to Compile the ANE.



来源:https://stackoverflow.com/questions/13187223/android-res-layout-folder-not-included-in-the-apk-file-but-included-in-the-ane

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!