本文介绍了错误:当我尝试创建Signed APK时,可疑的名称空间和前缀组合[NamespaceTypo]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Google搜索了问题,但找不到解决方法.
当我尝试创建签名的APK时,出现以下错误:

I Googled my problem but I can't find a solution.
When I try to create a signed APK, I get this error:

 Error:(6) Error: Suspicious namespace and prefix combination [NamespaceTypo]
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Explanation for issues of type "NamespaceTypo":
   track these down.
   xmlns:app="http://schemas.android.com/tools"
   obscure error messages. This check looks for potential misspellings to help
   Accidental misspellings in namespace declarations can lead to some very

这是此布局文件的片段:

This is the fragment of this layout file:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:fab="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/tools"
    app:layout_behavior="@null"
    android:layout_gravity="bottom|right">

推荐答案

使用以下命令更改代码xmlns:app ="http://schemas.android.com/tools"

change the code xmlns:app="http://schemas.android.com/tools" with this:

xmlns:app="http://schemas.android.com/apk/res-auto"

这使我的工作成为现实.

It made mine work.

这篇关于错误:当我尝试创建Signed APK时,可疑的名称空间和前缀组合[NamespaceTypo]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 14:34