我刚刚尝试在Android (一个带有android6.0的Nexus5设备)上使用distriqt对话框,我像往常一样添加了ANE,并将它包含在application.xml中,当我试图编译时,我得到了以下结果:
aapt tool failed:C:\Users\SeanJD\AppData\Local\Temp\bbea1b25-409e-40dd-84bb-a8411a70231c\distriqt-extension-dialog-res\values-v21\distriqt_dialog_themebase.xml:16: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.
C:\Users\SeanJD\AppData\Local\Temp\bbea1b25-409e-40dd-84bb-a8411a70231c\distriqt-extension-dialog-res\values-v21\distriqt_dialog_themebase.xml:20: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.Light.Dialog.Alert'.
C:\Users\SeanJD\AppData\Local\Temp\bbea1b25-409e-40dd-84bb-a8411a70231c\distriqt-extension-dialog-res\values-v21\distriqt_dialog_themebase.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Dialog.Alert'.
C:\Users\SeanJD\AppData\Local\Temp\bbea1b25-409e-40dd-84bb-a8411a70231c\distriqt-extension-dialog-res\values-v21\distriqt_dialog_themebase.xml:7: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
C:\Users\SeanJD\AppData\Local\Temp\bbea1b25-409e-40dd-84bb-a8411a70231c\distriqt-extension-dialog-res\values-v21\distriqt_dialog_themebase.xml:5: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
C:\Users\SeanJD\AppData\Local\Temp\bbea1b25-409e-40dd-84bb-a8411a70231c\distriqt-extension-dialog-res\values-v21\distriqt_dialog_themebase.xml:6: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.有没有想过这是什么原因造成的?
谢谢肖恩
发布于 2015-11-20 07:10:04
这是因为对话框需要AIR SDK的v20 (我使用的是v19)在https://github.com/distriqt/ANE-Dialog/releases上有一个较旧版本的对话框(与较早版本的AIR兼容
https://stackoverflow.com/questions/33808278
复制相似问题