赞
踩
呀呀先不管为什么了,能解决就好。。
报错:com.android.ide.common.process.ProcessException: Failed to execute aapt
解决:Module的build.gradle中的compileSdkVersion和buildToolsVersion以及dependncies全部正确
android { compileSdkVersion 27 buildToolsVersion "27.0.3"
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:27.1.0'
参考:
https://developer.android.google.cn/studio/releases/gradle-plugin.html#updating-plugin
报错:Should have subtitle controller already set
是这么说的
When the MediaPlayer starts playing a music (or other source), it checks if there is a SubtitleController and shows this message if it’s not set. It doesn’t seem to care about if the source you want to play is a music or video. Not sure why he did that.
百度来一个翻译
当播放器开始播放音乐(或其他来源),检查是否有subtitlecontroller显示此消息如果不设置。它似乎并不关心你想播放的源是音乐还是视频。不知道他为什么那样做。
管他呢不知道为嘛,如果以后必须要解决再学习。
参考:http://blog.csdn.net/ouyang_peng/article/details/54023240
报错:Calling invokeAndWait from read-action leads to possible deadlock.
解决:关掉重新打开
报错:com.android.ddmlib.AdbCommandRejectedException: insufficient permissions for device
解决:手机线掉了,再连一遍
报错:Validates resource references inside Android XML files.
比如下面这个报红
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
参考:http://blog.163.com/wslngcjsdxdr@126/blog/static/16219623020146971323118/
http://blog.csdn.net/u010687761/article/details/73732451
报错:Error:Execution failed for task ':app:transformClassesWithRetrolambdaForDebug'.
> Missing javaCompileTask for variant: debug/0 from output dir:
这个真实查了好久,首先来个关于retrolmabda的小介绍:https://www.jianshu.com/p/e950a683b2a8点击打开链接
之后就出现问题,还是版本变更引发的西瓜案,懵啊,我用的是android3.0 jdk1.8的竟然还是使用了插件。。参考http://blog.csdn.net/hexingen/article/details/78298500点击打开链接
使用就是用了,只不过改一下下
解决:根目录下的build.gradle的依赖里,把retrolmabda写成3.7.0
classpath 'me.tatarka:gradle-retrolambda:3.7.0' //使用lamatada
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。