2 dllsndy dllsndy 于 2016.05.12 10:14 提问

关于Android Studio2.0 集成 百度云push的问题,导入so包还能怎么导入

Eclipse 可以推送 ,在AndroidStudio上集成的问题 估计是so包导入的不对 ,但是网上说的方法 新建jniLisb我试了 ,复制到libs,在android节点加gradle语句我也试了 都不行,请大神帮我看看啊 哪集成的问题

下面是部分报错
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.a.a.e) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.a) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.aa) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.ab) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.a.b.d) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.aj) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.a.b.e) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.ac) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.ad) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.ae) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.af) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.baidu.android.pushservice.ag) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.

4个回答

dllsndy
dllsndy   2016.05.12 10:18

图片说明
这个是我的项目结构

CSDNXIAON
CSDNXIAON   2016.05.12 10:22

Android Studio中so包的导入
android studio导入so包
Android实战技巧之十二:Android Studio导入第三方类库、jar包和so库
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!

AinUser
AinUser   2016.05.12 10:28

右键jar =》 add library

dllsndy
dllsndy add已经加过了
大约 2 年之前 回复
dllsndy
dllsndy   2016.05.12 10:34
贴上我的bulid,gradle文件

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
    applicationId "com.soft.android"
    minSdkVersion 10
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile files('libs/pushservice-4.6.2.39.jar')
}

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
Android 引入so包的两种方式
参考:http://jingyan.baidu.com/article/e3c78d644baaf23c4d85f57d.html             http://blog.csdn.net/wulianghuan/article/details/44567001 两个方法,我使用的是方法二,方法一没有测试。 方法一、 1、在src/main中添加 jniLibs
百度地图申请Key jar包和.so文件导入AS中
要想使用百度api需要先申请key,这个需要项目的指纹 SHA1,在dos 命令行中获取SHA1, 这里的密匙口令是android 输入时是不可见的。 见图 然后在官网下载压缩包 BaiduMap_AndroidSDK_All 文件在其中找到libs 文件夹。 如果libs 文件夹不存在,就在app 文件夹下创建 如果该目录已经存在了,就将.java包复制到该目录下, 需要注意的是,要阅读re
Eclipse工程导入Android studio之后不识别so文件的解决方法
将Eclipse工程导入到Android studio中后,由于工程的目录结构仍然是Eclipse中的目录结构导致工程在Android studio无法运行。 工程运行时,会找不到so文件,进而导致工程不能运行。 因为Android studio使用gradle管理第三方资源,所以需要在工程的build.gradle中添加相应文件的配置(如工程导入后jar文件已经自动配置了) 工
【Android】新版Android Studio 2.0 Preview 4 下载链接 百度网盘
早先11份2.0Preview刚出来的下载介绍博客 旧版2.0下载链接(百度网盘)新版Android Studio 2.0 Preview 4 下载链接(for windows百度网盘)官方链接(需墙)
关于Android的.so文件导入问题
关于Android的.so文件导入问题Android系统目前支持以下七种不同的CPU架构:ARMv5,ARMv7 (从2010年起),x86 (从2011年起),MIPS (从2012年起),ARMv8,MIPS64和x86_64 (从2014年起),每一种都关联着一个相应的ABI。Android应用支持的ABI取决于APK中位于lib/ABI目录中的.so文件,其中ABI可能是上面说过的七种ABI
Android Studio快速导入SO文件与jAR包
首先将你需要导入的jar包和so文件 直接拷贝至Projuect目录下的lib包下 在Module层级下的build.gradle文件里写入此段代码 sourceSets{ main{ jniLibs.srcDir(['libs']) } }注意是在Android {}层级下。 OK。导入成功 sourceSets{ main{ jniLibs.s
Eclipse开发Android程序引入jar包和so文件
①找到我们要引入的jar包,鼠标选中jar包,然后按住鼠标左键不放,把jar包拖到lib文件夹中。或先复制jar包,然后在lib文件夹上右击,选择复制。然后我们就可以在lib文件夹下看到我们复制成功的jar包。②此时,只是把jar包复制到项目中,还不能使用。我们再在项目名上右击,依次选择【Build Path】-->【Configure Build Path...】。 ③在打开的窗口中,先选中【L
eclipse中集成百度地图的项目导入Android studio加入so文件的问题
刚到一家新公司,之前的项目用的是eclipse开发的,在网android studio转的时候,就遇到了百度地图这方面的问题。我先贴出百度地图官方给出的在不同的开发工具下怎么引用so文件。 开发工具 Android开发工具很多,在这我们推荐各位开发者使用Eclipse和Android Studio作为自己的开发工具。下面我们将分别针对Eclipse和Android Studio介绍一下
android5.0版本对.so文件适配的简单测试分析
关于5.0手机.so类库的测试,以BaiduMapsApiDemo为测试程序分别进行模拟器和真机测试,分析不同情形对程序安装是否成功的影响。 BaiduMapsApiDemo为从百度地图lbs下载,测试页面为:定位图层展示--LocationOverlayDemo(LocationOverlayDemo) 测试机如下: 模拟器型号:Nexus7、android版本:5.0.1 测试机型
AndroidStudio导入XUtils问题解决
在日常开发中我们离不开导入各种工具jar包或者库文件,但是导入jar包的容易在开发过程无法关联代码的情况,为了避免出现此种情况,以常用的Xutils为例,我通常在使用xutils时会直接导入library库,方便使用.但是在AndroidStudio情况下.通常会出现因为原库中缺少build.gradle导致的无法导入情况(如下图),那么如何解决呢?