我在网上查了一个解决方案试过这个页面的解决方案:错误:可疑的命名空间和前缀组合[NamespaceTypo]当我尝试创建签名APK和hello world xml中的错误但是没有解决方案.有趣的是,当我尝试构建应用程序的调试或电视发布时,一切运行良好.错误:
(9) Error: Suspicious namespace and prefix combination [NamespaceTypo]
xmlns:app="http://schemas.android.com/tools"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "NamespaceTypo":
Accidental misspellings in namespace declarations can lead to some very
obscure error messages. This check looks for potential misspellings to help track these down.
1 errors, 0 warnings
Run Code Online (Sandbox Code Playgroud)
布局文件部分代码:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:materialdesign="http://schemas.android.com/apk/res-auto"
xmlns:app="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal">
Run Code Online (Sandbox Code Playgroud)
解决这个问题非常有帮助