将下载的项目导入Andoroid Stuio时,我遇到了以下问题.请帮我.
**
Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.7-bin.zip'.
Build file '/Users/Rajesh.K/Desktop/Test/Project/build.gradle' line: 9
A problem occurred evaluating project ':Project'.
A problem occurred evaluating project ':Project'.
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
Consult IDE log for more details (Help | Show Log)
Run Code Online (Sandbox Code Playgroud)
**
请帮助我摆脱这个问题.我在Android Studio Mac版中遇到了这个问题.
我在使用以下网址加载webview时遇到问题:
但两者都在webview中显示一个空白页面.
这里我附上了源代码.我该如何摆脱这个问题?
资源:
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;
public class WEBVIEW_ITSELF extends Activity {
WebView homeWeb;
Button btnPlay;
final Activity activity = this;
static Context mContext;
public boolean orandationChange = true;
@Override
protected void onPause() {
super.onPause();
orandationChange = false;
}
String urlchange;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.getWindow().requestFeature(Window.FEATURE_PROGRESS);
setContentView(R.layout.i_webview);
mContext = this;
homeWeb = (WebView) findViewById(R.id.website_webview);
homeWeb.getSettings().setJavaScriptEnabled(true);
homeWeb.getSettings().setSupportZoom(true); // …Run Code Online (Sandbox Code Playgroud)