我正在尝试为我的第一个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) 如何忽略多行注释符号中的另一个多行注释?
假设我想将整个代码放在注释中,以便我可以在代码中测试其他内容
/* 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)
这是在创造错误.
编译器正在考虑这两个.
long unsigned int a;
unsigned long int a;