Android资源链接失败 [英] Android resource linking failed

查看:125
本文介绍了Android资源链接失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道这个错误是什么,我该如何解决? 我正在尝试从Mumble打开源代码,并被卡在这个错误中

does anyone know what is this error and how can I fix this? I am trying to open a source code from Mumble and stucked with this error

Android resource linking failed
Output:  C:\Users\NP\Desktop\Plumble-Legacy-master\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:352: error: resource android:attr/popupPromptView is private.
error: failed linking references.

Command: C:\Users\NP\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-alpha17-4804415-windows.jar\1d0ef7dbf7bb928283477115487f45e4\aapt2-3.2.0-alpha17-4804415-windows\aapt2.exe link -I\
    C:\dev\sdk\android-sdk-essential-3.1.3\platforms\android-27\android.jar\
    --manifest\
    C:\Users\NP\Desktop\Plumble-Legacy-master\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
    -o\
    C:\Users\NP\Desktop\Plumble-Legacy-master\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
    -R\
    @C:\Users\NP\Desktop\Plumble-Legacy-master\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
    --auto-add-overlay\
    --java\
    C:\Users\NP\Desktop\Plumble-Legacy-master\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
    --custom-package\
    com.morlunk.mumbleclient\
    -0\
    apk\
    --output-text-symbols\
    C:\Users\NP\Desktop\Plumble-Legacy-master\build\intermediates\symbols\debug\R.txt\
    --no-version-vectors
Daemon:  AAPT2 aapt2-3.2.0-alpha17-4804415-windows Daemon #0

推荐答案

请提供一些代码.这将非常有帮助.

Please, provide some code. That will be very helpful.

但是,目前,错误显示如下:

But, for now as the error shows:

守护程序:AAPT2 aapt2-3.2.0-alpha17-4804415-windows守护程序#0

Daemon: AAPT2 aapt2-3.2.0-alpha17-4804415-windows Daemon #0

这意味着您的XML文件(布局文件或可绘制文件)必须存在一些错误,如果您使用的是Android Studio,请检查XML文件的最新历史记录

It means you must have some error in your XML files (layout files or drawable files), check your recent history of your XML file if you are working on Android Studio

右键单击xml文件->本地历史记录->显示历史记录

或查找XML文件显示的任何错误.

or look for any error that XML file is showing.

values.xml:352:错误:资源android:attr/popupPromptView是私有的.

values.xml:352: error: resource android:attr/popupPromptView is private.

还要在values.xml文件中引用此错误

And also refer to this error in values.xml file

这篇关于Android资源链接失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆