更新Android sdk r12后出现Android自定义警报对话框错误

更新Android sdk r12后出现Android自定义警报对话框错误,android,android-alertdialog,Android,Android Alertdialog,在将我的android sdk版本更新为r12后,我遇到了以下错误 error: Error retrieving parent for item: No resource found that matches the given name '@android:style/AlertDialog'. 这是我的xml文件 我没有更改代码中的任何内容,我做的唯一一件事就是升级了Android SDK。Android:style/AlertDialog不是公共样式,您不应该使用它。请参考这个帖子,我

在将我的android sdk版本更新为r12后,我遇到了以下错误

error: Error retrieving parent for item: No resource found that matches the given name '@android:style/AlertDialog'.
这是我的xml文件


我没有更改代码中的任何内容,我做的唯一一件事就是升级了Android SDK。

Android:style/AlertDialog不是公共样式,您不应该使用它。请参考这个帖子,我终于找到了答案。我知道这不是正确的方法,但它现在起作用了

I managed to fix it by replacing the platform-tools_r06 with platform-
tools_r05 in android sdk folder

您可以从下载平台-tools-r05。

。。。但在下面的评论中,他们说使用@android:style/Theme.Dialog,这实际上是可行的。
I managed to fix it by replacing the platform-tools_r06 with platform-
tools_r05 in android sdk folder