Android errors after creating a signed APK

I am creating a project to use Google OAUTH login. I had to create a signed APK and then add sha1 to the app settings on google.

One section asked me to add the name of my package. I added it

After finishing the setup, I know this error,

channel
'4abe725 com.mysite.mysite/com.mysite.mysite.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
E/NetworkScheduler.SchedulerReceiver: Invalid parameter app
E/NetworkScheduler.SchedulerReceiver: Invalid package name : 
Perhaps you didn't include a PendingIntent in the extras?

Please note that this package name is repeated.

com.mysite.mysite/com.mysite.mysite.MainActivity 

I am wondering if my application configuration was upset when I created a signed apk. How can I change the file path if this is a problem?

webview.java

public class WebViewActivity extends Activity {

    private WebView webView;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.webview);

        webView = (WebView) findViewById(R.id.webView1);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.loadUrl("http://www.google.com");
    }
}

webview.xml

 <?xml version="1.0" encoding="utf-8"?>
<WebView  xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webView1"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />

Primary activity

public class MainActivity extends the action {

private Button button;

private GoogleApiClient client;

public void onCreate(Bundle savedInstanceState) {
    final Context context = this;

    super.onCreate(savedInstanceState);
    setContentView(R.layout.content_main);

    button = (Button) findViewById(R.id.buttonUrl);

    button.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View arg0) {
            Intent intent = new Intent(context, WebViewActivity.class);
            startActivity(intent);
        }

    });
+4
source share

Source: https://habr.com/ru/post/1620844/


All Articles