AndroidStudio导入support-v13
事情是这样的,学艺不精,导致 用上了AS,连什么是library dependency,module dependency 还有那个file dependency
-----------------------------------正文割-----------------------------------------------
想要导入v13包。这种和普通的什么chat那种不一样,不是add as library
而是 file--> project structure -> 选择左侧边栏的module下的APP --> 选择右上方dependencies模块 --> 点击右上角的小+ --> 选择 library dependenciy
下面出来一堆选项,选择即可
---------------下面是错误方法!!--------------------
如果!是add as library这样的!
运行起来就会爆出如下错误
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
:app:transformClassesWithDexForDebug FAILED
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Program Files\Java\jdk1.8.0_101\bin\java.exe'' finished with non-zero exit value 2
多亏了学长,还有自己虽然大三仍然能舔着个大脸去问。。