Giter Club home page Giter Club logo

Comments (10)

lllyeeAB avatar lllyeeAB commented on July 24, 2024

另外有大佬用过umeng的oaid获取方法吗?靠谱吗?我试了下可以荣耀获取的。。就是不知道对比作者这个哪个好一些?

UMConfigure.getOaid(this, object : OnGetOaidListener {
override fun onGetOaid(p0: String?) {
val oaid = p0.toString()
}
})

from android_cn_oaid.

bxxasn avatar bxxasn commented on July 24, 2024

有大佬知道啥情况么...
DeviceIdentifier.register(this); 第一步初始化就闪退了.
直接就闪退了

from android_cn_oaid.

lllyeeAB avatar lllyeeAB commented on July 24, 2024

有大佬知道啥情况么... DeviceIdentifier.register(this); 第一步初始化就闪退了. 直接就闪退了

你是荣耀设备才会这样吗?华为会不会?

from android_cn_oaid.

SkywardSky avatar SkywardSky commented on July 24, 2024

直接使用:implementation('com.github.gzu-liyujiang:Android_CN_OAID:4.2.9')

from android_cn_oaid.

SkywardSky avatar SkywardSky commented on July 24, 2024

不要加啥exclude group: 'com.huawei.hms', module: 'ads-identifier'
exclude group: 'com.hihonor.mcs', module: 'ads-identifier'

from android_cn_oaid.

LoveMissLove avatar LoveMissLove commented on July 24, 2024

另外有大佬用过umeng的oaid获取方法吗?靠谱吗?我试了下可以荣耀获取的。。就是不知道对比作者这个哪个好一些?

UMConfigure.getOaid(this, object : OnGetOaidListener { override fun onGetOaid(p0: String?) { val oaid = p0.toString() } })

目前我用的最新友盟获取oaid很多机型都崩溃,而且这些崩溃还是友盟内部的,我在外边try不到,改用这个库了

from android_cn_oaid.

lllyeeAB avatar lllyeeAB commented on July 24, 2024

另外有大佬用过umeng的oaid获取方法吗?靠谱吗?我试了下可以荣耀获取的。。就是不知道对比作者这个哪个好一些?
UMConfigure.getOaid(this, object : OnGetOaidListener { override fun onGetOaid(p0: String?) { val oaid = p0.toString() } })

目前我用的最新友盟获取oaid很多机型都崩溃,而且这些崩溃还是友盟内部的,我在外边try不到,改用这个库了

我丢。。那这些崩溃在友盟本身的监控后台能捕捉到吗??我这几天看崩溃还可以,看不到关于这个的崩溃。

from android_cn_oaid.

lllyeeAB avatar lllyeeAB commented on July 24, 2024

不要加啥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.

lllyeeAB avatar lllyeeAB commented on July 24, 2024

不要加啥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.

lllyeeAB avatar lllyeeAB commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.