Java 为什么会出现这个错误;在android中找不到属性值的资源标识符?

Java 为什么会出现这个错误;在android中找不到属性值的资源标识符?,java,android,Java,Android,在Java代码中。。。“R”突出显示。。。消息“无法解析R” 然后,当我尝试构建时: 我收到以下错误: C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\manifests\debug\AndroidManifest.xml Error:(46) No resource identifier found for attribute 'values' in package 'android' E

在Java代码中。。。“R”突出显示。。。消息“无法解析R”

然后,当我尝试构建时: 我收到以下错误:

C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\manifests\debug\AndroidManifest.xml
Error:(46) No resource identifier found for attribute 'values' in package 'android'
Error:(46) Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4W\aapt.exe package -f --no-crunch -I C:\Program Files (x86)\Android\android-studio\sdk\platforms\android-L\android.jar -M C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\manifests\debug\AndroidManifest.xml -S C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\res\debug -A C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\assets\debug -m -J C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\generated\source\r\debug -F C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\libs\app-debug.ap_ --debug-mode --custom-package com.ptr.ptrykiel.business_app -0 apk --output-text-symbols C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\symbols\debug
Error Code:
    1
Output:
    C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\manifests\debug\AndroidManifest.xml:46: error: No resource identifier found for attribute 'values' in package 'android'

有什么想法吗

检查第46行的AndroidManifest只需清理您的项目并确保已检查自动生成,如果您的xml文件中有任何错误,则不会生成R.java,因此请解决xml错误,然后清理您的项目检查您的导入,也许您导入了安卓.R而不是您的包。Ri已经解决了这一问题。。。我在manifest.xmlPost中有两处输入错误,分别是布局XML和AndroidManifest
C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\manifests\debug\AndroidManifest.xml
Error:(46) No resource identifier found for attribute 'values' in package 'android'
Error:(46) Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.4W\aapt.exe package -f --no-crunch -I C:\Program Files (x86)\Android\android-studio\sdk\platforms\android-L\android.jar -M C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\manifests\debug\AndroidManifest.xml -S C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\res\debug -A C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\assets\debug -m -J C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\generated\source\r\debug -F C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\libs\app-debug.ap_ --debug-mode --custom-package com.ptr.ptrykiel.business_app -0 apk --output-text-symbols C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\symbols\debug
Error Code:
    1
Output:
    C:\Users\Ptrykiel\AndroidStudioProjects\Business_App\app\build\intermediates\manifests\debug\AndroidManifest.xml:46: error: No resource identifier found for attribute 'values' in package 'android'