总会有各种各样的问题,不要着急!!!
问题都是别人造成的,与我无关。找问题,解决问题才是最重要的。
一、 Error:Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line ‘android.overridePathCheck=true’ to gradle.properties file in the project directory
原因:路径或者项目名有中文。(最好不要出现中文)
二、Installation did not succeed. The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
原因:在手机上允许USB安装
![](https://i-blog.csdnimg.cn/blog_migrate/cd27fc16534e6cc4fbee1d25b23029e7.png)
四、配置正确的SDK路径,下载手机对应的android SDK
五、android studio中找不到手机
- 查看数据线是否支持传输文件。
- 手机需要打开开发者模式。
- 在android studio中配置