I am new to Android Studio. When I try to make this project it throws me the error:
Cannot find symbol method loadUrl(String)
in the MainActivity.java
.
The loadUrl
is highlighted in red. I've made a folder assets in the main and added www folder in the assests folder.
package com.rmworks.digitalindia;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
}
}
See Question&Answers more detail:os