更新时间:2023-01-09 09:21:59
更改此
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyAZUoTQoHQwP25j0L_hTIUsXjxWmkFi3vg"
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
到
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyAZUoTQoHQwP25j0L_hTIUsXjxWmkFi3vg"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
删除
import android.R;
相反,你需要
import com.example.studenthealthapp.R;
但是,如果其在相同的包,那么就没有必要进行导入。
But if its in the same package then there is no need for import.
此外,如果你在你的资源文件有错误R.java将不会发生。因此,如果任何错误修复和清理并生成项目。
Also if you have errors in your resources files R.java will not be generated. So if any errors fix them and clean and build project.