目前在学习kotlin,在Android Studio 3.0中引入最新版本的Anko

引入依赖

编译会出现如下错误
Error:Failed to resolve:Could not resolve com.google.android:android:2.3.1


在Android Studio中引入Anko 编译报Could not resolve com.google.android:android:2.3.1错误的问题_第1张图片 错误信息

目前临时解决的方法是把依赖改成

compile("org.jetbrains.anko:anko:$anko_version") {     exclude group: 'com.google.android', module: 'android'}

这样就能编译通过了,然后写你的代码,静等Anko更新

更多相关文章

  1. Android 在代码中同时给控件设置圆角和背景色
  2. Android finished with non-zero exit value 1错误解决方案
  3. Android webview调用js代码无效 webView.loadUrl("javascript:al
  4. Android SDK升级后的错误
  5. Android 使用 Ksoap2 出现的低级错误...
  6. android 代码混淆遭遇conversion to Dalvik format failed with
  7. android客户端从服务器端获取json数据并解析的实现代码
  8. 2017-3-28(React-Native与Android原生代码交互)

随机推荐

  1. Installation Instructions for Intel®
  2. 沉浸式
  3. Using NDK-STACK to Debug Cocos2dx Andr
  4. Android(安卓)Key Code
  5. Android中Sax解析与Dom解析xml文件
  6. hciconfig - HCI device configuration u
  7. cocos2d-x (Android)之-那些常见的error
  8. 在Android(安卓)emulator上测试NFC
  9. Android学习之SQLite数据库简单测试实例
  10. activities切换动画