断言错误:build-tools-23.0.0 与 build-tools-23.0.0-preview 不匹配 [英] AssertionError: build-tools-23.0.0 doesn't match build-tools-23.0.0-preview

查看:35
本文介绍了断言错误:build-tools-23.0.0 与 build-tools-23.0.0-preview 不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装 Android Studio 时遇到问题,每次在设计视图中向布局添加小部件时它都会崩溃.所以我下载了最新版本,它恰好是一个预览版本.这修复了崩溃.虽然它不是安装程序,但它只是压缩了所有文件.所以我删除了我旧的 Android Studio 版本并用这个预览版本替换它.

I was having trouble with my Android Studio install, it was crashing every time I added a widget to a layout in design view. So I downloaded the latest version which happened to be a preview build. This fixed the crashing. It wasn't an installer though, it was just all of the files zipped. So I deleted my old Android Studio version and replaced it with this preview version.

现在我每次打开 AS 时都会收到此错误:断言错误:build-tools-23.0.0 与 build-tools-23.0.0-preview 不匹配此外,当我尝试构建我的应用程序时,AS 不再识别我的手机,因此我无法对其进行测试.我不确定这两个问题是否相关.

Now I'm getting this error every time I open AS: AssertionError: build-tools-23.0.0 doesn't match build-tools-23.0.0-preview Also, AS no longer recognizes my phone when I try to build my app so I can't test it. I'm not sure if these two problems are related.

推荐答案

我遇到了完全相同的问题,并通过以下方式解决了:

I encountered the exzact same issue and solved it the following way:

转到文件 > 项目结构 > 选择模块 > BuildToolsVersion

Go to File > Project Structure > Select Module > BuildToolsVersion

选择 Build version 23.0.1(或您阅读时的最新版本).然后确保您的构建工具版本与编译后的 Sdk 版本相同.

Select Build version 23.0.1 (or what ever version is the latest at the time you are reading). Then ensure that your Build Tools Version is the same as your Compiled Sdk Version.

这篇关于断言错误:build-tools-23.0.0 与 build-tools-23.0.0-preview 不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆