Comments (10)
另外有大佬用过umeng的oaid获取方法吗?靠谱吗?我试了下可以荣耀获取的。。就是不知道对比作者这个哪个好一些?
UMConfigure.getOaid(this, object : OnGetOaidListener {
override fun onGetOaid(p0: String?) {
val oaid = p0.toString()
}
})
from android_cn_oaid.
有大佬知道啥情况么...
DeviceIdentifier.register(this); 第一步初始化就闪退了.
直接就闪退了
from android_cn_oaid.
有大佬知道啥情况么... DeviceIdentifier.register(this); 第一步初始化就闪退了. 直接就闪退了
你是荣耀设备才会这样吗?华为会不会?
from android_cn_oaid.
直接使用:implementation('com.github.gzu-liyujiang:Android_CN_OAID:4.2.9')
from android_cn_oaid.
不要加啥exclude group: 'com.huawei.hms', module: 'ads-identifier'
exclude group: 'com.hihonor.mcs', module: 'ads-identifier'
from android_cn_oaid.
另外有大佬用过umeng的oaid获取方法吗?靠谱吗?我试了下可以荣耀获取的。。就是不知道对比作者这个哪个好一些?
UMConfigure.getOaid(this, object : OnGetOaidListener { override fun onGetOaid(p0: String?) { val oaid = p0.toString() } })
目前我用的最新友盟获取oaid很多机型都崩溃,而且这些崩溃还是友盟内部的,我在外边try不到,改用这个库了
from android_cn_oaid.
另外有大佬用过umeng的oaid获取方法吗?靠谱吗?我试了下可以荣耀获取的。。就是不知道对比作者这个哪个好一些?
UMConfigure.getOaid(this, object : OnGetOaidListener { override fun onGetOaid(p0: String?) { val oaid = p0.toString() } })目前我用的最新友盟获取oaid很多机型都崩溃,而且这些崩溃还是友盟内部的,我在外边try不到,改用这个库了
我丢。。那这些崩溃在友盟本身的监控后台能捕捉到吗??我这几天看崩溃还可以,看不到关于这个的崩溃。
from android_cn_oaid.
不要加啥exclude group: 'com.huawei.hms', module: 'ads-identifier' exclude group: 'com.hihonor.mcs', module: 'ads-identifier'
这样的话编译会报错:
Duplicate class com.hihonor.cloudservice.oaid.a found in modules jetified-RangersAppLog-Lite-cn-6.16.3-runtime (com.bytedance.applog:RangersAppLog-Lite-cn:6.16.3) and jetified-ads-identifier-1.0.2.301-runtime (com.hihonor.mcs:ads-identifier:1.0.2.301)
它和我另外一个库有冲突 : RangersAppLog-Lite-cn-6.16.3
from android_cn_oaid.
不要加啥exclude group: 'com.huawei.hms', module: 'ads-identifier' exclude group: 'com.hihonor.mcs', module: 'ads-identifier'
然后我加上exclude的话:
implementation('com.github.gzu-liyujiang:Android_CN_OAID:4.2.9') {
exclude group: 'com.hihonor.mcs', module: 'ads-identifier'
}
编译就能过了,但是调用DeviceIdentifier.register方法又崩溃:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/hihonor/ads/identifier/AdvertisingIdClient;
from android_cn_oaid.
implementation('com.github.gzu-liyujiang:Android_CN_OAID:4.2.9')
implementation('com.bytedance.applog:RangersAppLog-Lite-cn:6.16.3')
这两个库似乎都依赖com.hihonor.mcs这个包,所以编译时会报错:Duplicate class com.hihonor.cloudservice.oaid.a found in modules jetified-RangersAppLog-Lite-cn-6.16.3-runtime (com.bytedance.applog:RangersAppLog-Lite-cn:6.16.3) and jetified-ads-identifier-1.0.2.301-runtime (com.hihonor.mcs:ads-identifier:1.0.2.301)
我该如何声明build.gradle文件,让这两个库都共存的情况下,并且都能用上com.hihonor.mcs的内容。也不会有这个编译冲突呢?
大佬或者作者大大能不能支支招啊!
from android_cn_oaid.
Related Issues (20)
- 编译报错 HOT 3
- 华为设备崩溃 HOT 2
- 荣耀手机 HONOR Model: JSN-L22 Release: 9 API: 28 进入黑屏卡死 HOT 3
- 荣耀11.23日发布新机型,并用自己提供oaid的获取方法,不再允许其他方式获取 HOT 23
- 小米隐私合规问题 HOT 2
- 华为P40 Pro海外版,崩溃 HOT 2
- Event:APP_SCOUT_WARNING Thread:main backtrace: HOT 3
- 找不到 荣耀的包 HOT 1
- 4.2.8版本远程依赖不了 HOT 4
- 这个只能在原生安卓使用是吧,unaipp能用吗 HOT 3
- 部分手机测试 获取 OAID 为 空 HOT 2
- 荣耀手机崩溃 HOT 4
- 荣耀手机遇到一个很奇怪的问题,同型号同系统版本有的能获取成功有的就不行
- 升级sdk版本后oaid的值变了 HOT 6
- 急!线上大面积华为,荣耀用户突遇崩溃!!! No imolementation found for boolean com,huawei.hms.ads,identifier,AdvertisingIdclient,isAdvertisingIdAvailable(android,content.Context) HOT 13
- 华为鸿蒙4.0手机不能使用DeviceIdentifier.getOAID(this);方法 HOT 22
- 荣耀获取OAID的逻辑优化,或者开放一个修改方法 HOT 5
- 华为荣耀手机获取OAID首次为空,要手动调用才能获取 HOT 4
- Device.java中没有执行回调,导致DeviceIdentifier.register()监听不到onComplete()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_cn_oaid.