对文件的Andr​​oid工作室的锁定图标 [英] Android studio lock icon on files

查看:127
本文介绍了对文件的Andr​​oid工作室的锁定图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何一个可以帮助解决这个问题。四,增加了一个jar文件到我的Andr​​oid项目

Can any one help resolve this. Iv added a jar file to my android project

罐子点击鼠标右键选择添加库

Right click of the jar and selected "Add as library"

但类的jar显示锁的图标,我不能导入...

But the classes in the jar show lock icons and I cant import them...

任何帮助将是AP preciated!

Any help would be appreciated!

推荐答案

矿山显示锁图标并已正确导入。你添加到您的build.gradle文件?

Mine show lock icons and they have been imported correctly. Did you add this to your build.gradle file?

dependencies {
    compile files('libs/twitter4j-stream-4.0.1.jar')
}

也曾经4.0.1版本在Maven的中央(快? https://twitter.com/t4j_news /状态/ 445971905191759874 ),你可以简单地通过添加导入编译org.twitter4j:twitter4j流:4.0.1不包括jar文件在所有。

also once version 4.0.1 is in maven central (soon? https://twitter.com/t4j_news/status/445971905191759874) you can simply import it by adding compile 'org.twitter4j:twitter4j-stream:4.0.1' without including the jar file at all.

这篇关于对文件的Andr​​oid工作室的锁定图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆