如何解决在Android应用程序中添加必要的代码后,Google登录按钮未显示
我正在使用ConstraintLayout,并且在一个片段(登录片段)中,我尝试使用以下代码添加Google的登录按钮
<com.google.android.gms.common.SignInButton
android:id="@+id/sign_in_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="96dp"
android:layout_marginBottom="255dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
我包含的插件是(应用程序级别)
plugins {
id 'com.android.application'
id 'com.google.gms.google-services'
}
但是按钮仍然没有出现。出现了点但图形按钮没有出现!
以下是一些相关的屏幕截图- https://imgur.com/a/LYjXrs4
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。