项目级别 Gradle 已更新,现在看起来像这样
plugins {
id 'com.android.application' version '7.1.2' apply false
id 'com.android.library' version '7.1.2' apply false
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)
无论如何,我需要将其添加到我的项目级别 Gradle 中:
dependencies {
classpath 'com.google.gms:google-services:4.3.10'
}
Run Code Online (Sandbox Code Playgroud)
我确实读过这篇文章,但仍然不明白如何实现这一点!
为什么我在“atoi()”函数上出错?
#include <stdio.h>
#include <string.h>
int main()
{
char s1[10],s2[10];
int x=5,y=6,z;
sprintf(s1,"%d",x);
sprintf(s2,"%d",y);
strcat(s1,s2);
z = atoi(s1);
printf("%d, %s",z, s1);
return 0;
}
Run Code Online (Sandbox Code Playgroud)
如上所述,它在 atoi() 函数上抛出错误!