小编Amn*_*ngh的帖子

Gradle Error:资源'attr/font'的重复值,配置"解决方案无效

我正在尝试为我的第一个Android应用程序创建圆形按钮.

为此,我compile 'com.cuboid:cuboidcirclebutton:1.0.5'在circlebutton/app/build.gradle中添加了库

当我同步时,我收到错误.下面是日志

Information:Gradle tasks [clean, :app:assembleDebug]
C:\Users\Amninder\.gradle\caches\transforms-1\files-1.1\appcompat-v7-26.1.0.aar\2d55d8c33dae479e599960c08d012b17\res\values\values.xml
Error:(246, 5) error: duplicate value for resource 'attr/font' with config ''.
Error:(246, 5) error: resource previously defined here.

C:\Users\Amninder\AndroidStudioProjects\circlebutton\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Error:(254) duplicate value for resource 'attr/font' with config ''.

Error:(240) resource previously defined here.

Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:mergeDebugResources'.

 Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Information:BUILD FAILED in 19s
Information:6 errors
Information:0 warnings
Information:See complete output in …
Run Code Online (Sandbox Code Playgroud)

android gradle

9
推荐指数
1
解决办法
1万
查看次数

C编程 - 多行注释

如何忽略多行注释符号的另一个多行注释?

假设我想将整个代码放在注释中,以便我可以在代码中测试其他内容

/* This is my first comment */
printf("\n This is my first print command");

/* This is my second comment */
printf("\n This is my second print command");
Run Code Online (Sandbox Code Playgroud)

如果我做

/* 

/* This is my first comment */
printf("\n This is my first print command");

/* This is my second comment */
printf("\n This is my second print command");

*/
Run Code Online (Sandbox Code Playgroud)

这是在创造错误.

c syntax comments line

3
推荐指数
1
解决办法
76
查看次数

long unsigned int和unsigned long int之间有什么区别

编译器正在考虑这两个.

long unsigned int a; unsigned long int a;

c syntax types

3
推荐指数
1
解决办法
862
查看次数

标签 统计

c ×2

syntax ×2

android ×1

comments ×1

gradle ×1

line ×1

types ×1