---
title: "Android studio使用WebView提示net ERR_FILE_NOT_FOUND"
author: "andinker"
date: "2019-11-03T22:10:33Z"
tags: []
categories: ["移动开发"]
slug: "android-studio-webview-net-err-file-not-found"
draft: false
lastmod: "2019-11-03T22:10:33Z"
id: 2509536
url: "https://andinker.iteye.com/blog/2509536"
---

**ADT**加载本地网页,放在res/assets目录下,然后webView.loadUrl(""[file:///android\_asset/index.html]()"");

 

但是在 **androidstudio** 中 把assets放在了和res里面,然后再webView.loadUrl(""[file:///android\_asset/index.html]()"");提示net ERR\_FILE\_NOT\_FOUND  
此时把assets放在了和res，java一级,然后再webView.loadUrl(""[file:///android\_asset/index.html]()"");就可以加载出来了。