亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

錯誤編譯應用程序使用或覆蓋已棄用的 API

錯誤編譯應用程序使用或覆蓋已棄用的 API

湖上湖 2023-07-19 10:40:19
當我編譯應用程序時,它顯示應用程序使用或覆蓋已棄用的 API 的錯誤mEmailView =  findViewById(R.id.login_email);      mPasswordView =  findViewById(R.id.login_password);        googleButton = findViewById(R.id.google_button);        mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() {            @Override            public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) {                if (id == R.integer.login || id == EditorInfo.IME_NULL) {                    attemptLogin();                    return true;                }                return false;            }        });        textView3 = findViewById(R.id.textView3);        String text = "<font color=#cc0029>S</font><font color=#37BAF5>U</font><font color=#E000EE>M</font><font color=#BF0731>O</font>";        textView3.setText(Html.fromHtml(text));        textView3.setScaleX(2.5f);        // instance of FirebaseAuth    }        public void signInExistingUser(View v) {        //  Call attemptLogin() here    attemptLogin();    }    public void registerNewUser(View v) {        Intent intent = new Intent(this, com.one4all.sumotwo.RegisterActivity.class);        finish();        startActivity(intent);    }    private void attemptLogin() {        String email = mEmailView.getText().toString();        String password = mPasswordView.getText().toString();        if (email.equals("") || password.equals("")) {            return;        } else {            Toast.makeText(this, "Login progress...", Toast.LENGTH_SHORT).show();        }
查看完整描述

1 回答

?
慕娘9325324

TA貢獻1783條經驗 獲得超4個贊

更新android studio后它就可以工作了。

查看完整回答
反對 回復 2023-07-19
  • 1 回答
  • 0 關注
  • 124 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號