Java编译器:链接文件资源失败

时间:2019-01-13 05:00:39

标签: android-studio

我试图运行hello world程序。它显示了Java编译器:链接文件资源失败。解决此问题的方法

构建失败7 s 61毫秒 运行构建6 s 392毫秒 加载建立4毫秒 配置构建1秒215毫秒 计算任务图57毫秒 运行任务5 s 107毫秒 空
Java编译器: 链接文件资源失败。

在右侧框中显示:

Android资源链接失败 输出:/home/anupamreddy/AndroidStudioProjects/MyApplication/app/src/main/res/layout/activity_main.xml:6:错误:找不到资源dimen / padding_medium(又名com.example.anupamreddy.myapplication:dimen / padding_medium)。 错误:链接文件资源失败。

命令:/home/anupamreddy/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-linux.jar/a85defc7bfe57949a363f9cdde861ec7/aapt2-3.2.1-4818971-linux/aapt2链接-一世\         /home/anupamreddy/Android/SDK/platforms/android-28/android.jar \          - 表现\         /home/anupamreddy/AndroidStudioProjects/MyApplication/app/build/intermediates/split-apk/debug/resources/AndroidManifest.xml \         -o \         /home/anupamreddy/AndroidStudioProjects/MyApplication/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_ \         -R \         @ / home / anupamreddy / AndroidStudioProjects / MyApplication / app / build / intermediates / incremental / processDebugResources / resources-list-for-resources-debug.ap_.txt \         --auto-add-overlay \         --java \         / home / anupamreddy / AndroidStudioProjects / MyApplication / app / build /生成/ not_namespaced_r_class_sources / debug / processDebugResources / r \         --custom-package \         com.example.anupamreddy.myapplication \         -0 \         apk \         --preferred-density \         xhdpi \         --output-text-symbols \         /home/anupamreddy/AndroidStudioProjects/MyApplication/app/build/intermediates/symbols/debug/R.txt \         --no-version-vectors 守护程序:AAPT2 aapt2-3.2.1-4818971-linux守护程序#0

0 个答案:

没有答案