【问题标题】:access denied finding property "hwservicemanager.ready"访问被拒绝查找属性“hwservicemanager.ready”
【发布时间】:2020-01-30 05:00:45
【问题描述】:

我正在尝试在我的应用程序中制作动画,但是当我单击按钮 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());
            // }

        }
    });

【问题讨论】:

    标签: java android android-studio


    【解决方案1】:

    如果您使用智能手机运行应用程序,您可以更改 de usb 模式。在我的情况下,将 USB 模式设置为“通过 USB 进行 PTB”就可以正常工作,但你可以尝试一切,直到你得到它。

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

    【讨论】:

    • 帮我删除了很多不必要的日志
    猜你喜欢
    • 2019-08-16
    • 2020-03-31
    • 2019-08-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-23
    • 1970-01-01
    • 2020-05-28
    相关资源
    最近更新 更多