访问被拒绝 查找属性"hwservicemanager.ready"



我正在尝试在我的应用程序中制作动画,但是当我单击按钮t做动画时,我的应用程序崩溃并且logcat给出了此错误

"访问被拒绝查找属性"hwservicemanager.ready" " 请帮我修复它

signup_btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(Login.this, SignUp.class);
// startActivity(intent);
//Attach all the elements those you want to animate in design
Pair[] pairs = new Pair[7];
pairs[0] = new Pair<View, String>(logo_image, "logo_image");
pairs[1] = new Pair<View, String>(logoText, "logo_text");
pairs[2] = new Pair<View, String>(sloganText, "logo_desc");
pairs[3] = new Pair<View, String>(username, "username_tran");
pairs[4] = new Pair<View, String>(password, "password_tran");
pairs[5] = new Pair<View, String>(login_btn, "login_button_tran");
pairs[6] = new Pair<View, String>(signup_btn, "signup_button_tran");
//wrap the call in API level 21 or higher
// if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Login.this, pairs);
startActivity(intent, options.toBundle());
// }
}
});

如果您使用智能手机运行该应用程序,则可以更改 de USB 模式。就我而言,将USB模式设置为"通过USB进行PTB"打开即可,但是您可以尝试所有内容,直到获得为止。

对不起我的英语,我是巴西人。

相关内容

  • 没有找到相关文章

最新更新