Android报错处理
合抱之木,生于毫末,九层之台,起于累土
这个作者很懒,什么都没留下…
展开
-
AndroidStudio3.0以后编译报错The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin.
前言今天闲着没事干,就在github上看一下OpengGL,代码clone下来,编译不过去,老是报错:The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin. Perhaps you misspelled something?这个错我们在build.gradle文件里很容易定位到,但是这里instr...原创 2018-06-25 18:04:23 · 5925 阅读 · 0 评论 -
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependenc...原创 2018-07-10 10:22:21 · 4002 阅读 · 0 评论 -
Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme
This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead. at andr...原创 2018-07-24 14:57:42 · 1897 阅读 · 0 评论 -
Compilation failed; see the compiler error output for details
错误:Compilation failed; see the compiler error output for details.解决修改build.gradle文件下的dependencies下的classpath配置版本。如下图所示:在这里修改Androidstudio classpath对应的版本就OK了。例如我的是3.0.1,如下所示:repositories { google()...原创 2018-07-16 09:30:16 · 76709 阅读 · 1 评论 -
Compilation failed to complete:Program type already present: android.support.v4.accessibilityservice
.Compilation failed to complete .Program type already present:android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatMessage{kind=ERROR, text=Program type already present:android...原创 2018-08-10 14:31:31 · 15411 阅读 · 2 评论 -
Failed to find Platform SDK with path: platforms;android-P
坑大了!!!接收别人写的代码,clone下来的代码 ,run以后报Failed to find Platform SDK with path: platforms;android-P这样的错误,当时一脸懵逼!!! 最后全局搜索一下 Ctrl+shift+F android-P ,在build下发现:// BUILD_SDK_VERSION compileSdkVersion ...原创 2018-10-12 15:57:34 · 17912 阅读 · 1 评论