B4A 安卓开发编译错误 res\values-v20\theme.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material'.
今天在Basic4Android(B4A) IDE环境中创建第一个demo时编译错误:res\values-v20\theme.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material'.上图中大体意思就是没找到style样式相关的资源。因考虑到可能本机的 Android SDK 长时间没更新引起的,但今天看了更新内容太多,硬盘容量又太小,也就没偿试了,但注意看他的提示里有values-v20,难道是版本不对,因在前面所提到的安装方法里有项关于 Android.jar 的设置,当时我们设置为16的版本,根据values-v20应该设置最低版本为v20:
我们现在设置成v20版本测试:
经测试后还是编译不了,后面选择了v21版本正常编译了:
页:
[1]