Android Studio 从1.4直接升级2.2 Preview1后的错误
来源:互联网 发布:产品外观设计软件 编辑:程序博客网 时间:2024/06/06 23:54
20号的IO大会后,我将自己的Studio 1.4升级到了2.2;因为2.0之后的版本Studio 的速度提高了很多很多倍。而刚好 最近项目不忙了 我就手贱的点击了升级。
因为版本相差过大,所以只能重新下载
在这里多说一句: 其实也可以使用插件化的升级模式,就是说不用重新下载一个Studio,而是只用下载个升级文件包,从1.4 升级到1.5 然后在升级到2.1 的这种模式。但是没有2.2版本。
但是呢, 你直接下载一个新的Studio 然后启动的时候 会询问你是否使用以前的配置。你同意后,那么新的Studio中是能使用你自己的配置信息的比如什么主题啊,字体啊。字符编码啊,还有你自己配置的插件。 都能直接在新的Studio中使用。
so : 我觉得 你还是直接下载新的安装文件算了。简单方便而且也没有那么多垃圾文件。
闲话少说:
我通过Studo 中的Check of Update 中的升级 update 按钮 直接就打开了个网页
然后看到了 上面硕大的 Downloads 我就下载了。
然后我就悲剧了:
下载完成后 点击直接使用我1.4的配置。
Studi 打开后 连我的项目也直接识别和打开了。 然后就开始报错了。
首先一个错误: 我的项目中将第三方库整成了个lib model 然后在自己的主model中去引用这个model库。结果就是项目中报错。说找不到文件,找不到什么文件了?
是找不到 model库中的lib文件夹下的类。 但是项目运行还是能运行打包的。 只是整个工程中大片大片的红色警告错误。
更恶心的是什么呢? 更恶心的是我的.9图全部失效了。
整了一天,在google 上也没有找到解决方案。
最后 我就在下载官网上找说明。 看看官网有没有什么介绍信息
然后我看到了这个,说的是什么呢。 是说Studio 有四个版本:
一个是 Canary版,Dev版,Beta版,Stable版。
Canary:金丝雀,果然就是个金丝雀,只是用来看的,各种新的特效和功能都往里面放,但是结果就是各种问题。如果使用这个版本来进行开发 那就自求多福吧。
Dev:开发版,开发者试用版,
Beta: 测试版,
Stable:稳定版
然后google 建议大家使用的是Beta版和Stable 版。 为什么会有这四个版本呢?
这个和google 的产品测试习惯有关系。我就不多说了。总的来说 从上倒下,就是一个比一个稳定。
新想法,新特效,新功能 都是先在Canary中发布,然后可以 就在更新在Dev中, 然后测试和用户反馈说可以,就会在Beta中更新。最后经过广大人民群众的测试体验,没有问题。就会发布到Stable版本中,形成最终的稳定版。
所以说: 我下载的2.2版本 就是个
Canary Channel
然后我就通过Android SDK Manager 将我电脑中的Android Tool全部给调整了下,将Preview Channel版本的Tool给全部卸载了。
AGPBI: {"kind":"error","text":"this warning is that reflective operations on this class will incorrectly","sources":[{}]}
AGPBI: {"kind":"error","text":"indicate that it is *not* an inner class.","sources":[{}]}
AGPBI: {"kind":"error","text":"warning: Ignoring InnerClasses attribute for an anonymous inner class","sources":[{}]}
AGPBI: {"kind":"error","text":"(com.umeng.socialize.view.g) that doesn\u0027t come with an","sources":[{}]}
AGPBI: {"kind":"error","text":"associated EnclosingMethod attribute. This class was probably produced by a","sources":[{}]}
AGPBI: {"kind":"error","text":"compiler that did not target the modern .class file format. The recommended","sources":[{}]}
AGPBI: {"kind":"error","text":"solution is to recompile the class from source, using an up-to-date compiler","sources":[{}]}
AGPBI: {"kind":"error","text":"and without specifying any \"-target\" type options. The consequence of ignoring","sources":[{}]}
AGPBI: {"kind":"error","text":"this warning is that reflective operations on this class will incorrectly","sources":[{}]}
AGPBI: {"kind":"error","text":"indicate that it is *not* an inner class.","sources":[{}]}
AGPBI: {"kind":"error","text":"warning: Ignoring InnerClasses attribute for an anonymous inner class","sources":[{}]}
AGPBI: {"kind":"error","text":"(com.umeng.socialize.view.h) that doesn\u0027t come with an","sources":[{}]}
AGPBI: {"kind":"error","text":"associated EnclosingMethod attribute. This class was probably produced by a","sources":[{}]}
AGPBI: {"kind":"error","text":"compiler that did not target the modern .class file format. The recommended","sources":[{}]}
AGPBI: {"kind":"error","text":"solution is to recompile the class from source, using an up-to-date compiler","sources":[{}]}
AGPBI: {"kind":"error","text":"and without specifying any \"-target\" type options. The consequence of ignoring","sources":[{}]}
AGPBI: {"kind":"error","text":"this warning is that reflective operations on this class will incorrectly","sources":[{}]}
AGPBI: {"kind":"error","text":"indicate that it is *not* an inner class.","sources":[{}]}
总共有520条的错误
但是没关系 你在点击下菜单栏的运行按钮, 这个时候Gradle Console 就没有了 你的apk 也能安装了。至于上面的这520条的错误到底怎么原因,我还没有找到。
我出现的这个原因是因为友盟和腾讯分享包造成的。 查过资料说是包有重复,反正我还是没解决这个问题。 但是不影响整个项目了。
最后: 总结就是,开发用还是用稳定版的吧,如果你想尝鲜。你可以在自己的非工作用的电脑中使劲折腾吧。
附上Studio官方下载地址:http://tools.android.com/download/studio
然后吐槽下: 2.1后Gradle也升级到了2.10版,然后每次运行打包的时间明显比1.4的时候耗时要高多了。以前一分半 现在得三分钟了。而且打包的时候 整个电脑都卡死了。
这效率提高 到底是提高在哪了?
- Android Studio 从1.4直接升级2.2 Preview1后的错误
- 如何将Android N从preview1升级到preview2
- android studio升级后的各种错误解决
- Android studio升级后Local path doesn’t exist错误
- 项目从Visual Studio 2013 升级到 2015 后出现错误解决方案
- Android Studio升级1.0 RC后,如何从GitHub导入项目以及对原项目的Gradle配置修改
- Android Studio升级后编辑local path 不存在的问题
- 升级android studio后编译的应用短暂白屏
- 关于android studio升级后出现的一个问题
- android studio gradle 的升级后为什么不可以使用
- 升级android studio后eclipse的adb异常
- 升级Android studio后创建工程很慢的解决方法
- android studio、gradle升级后遇到的问题
- android studio 升级2.2.2后jenkins编译问题
- Android Studio升级2.3后Gradle 的配置问题,适用2.2、2.1
- Android Studio升级时提示网络链接错误的解决方法
- Android Studio升级过程中可能出现的错误
- 升级到Android Studio 3.0遇到的几个错误
- 韩顺平Spring框架学习,学习笔记(二)
- OpenGLES---分离窗口和OpenGLES代码
- java入门教程-1.5Java开发环境的搭建(JDK和Eclipse的安装)
- Ubantu下Eclipse代码提示功能怎么设置
- 视频编解码初步
- Android Studio 从1.4直接升级2.2 Preview1后的错误
- MySQL数据库表操作的经典语句
- Android install error
- NVIDIA Tesla K80:怪物般的双芯计算卡
- 给OpenCV(2.x)增加汉字输出功能
- java入门教程-1.6第一个Java程序示例——Hello World!
- STM32片上Flash内存映射、页面大小、寄存器映射
- infiniband带宽测试方法1 ib_read/write_bw/lat
- java web前端攻城狮 学习路线图