luis901101 / honeywell_scanner

BSD 3-Clause "New" or "Revised" License
23 stars 9 forks source link

R8: Type com.honeywell.IExecutor$Stub$Proxy is defined multiple times: #21

Open AbdallahMohamed220 opened 8 months ago

AbdallahMohamed220 commented 8 months ago

ERROR:C:\Users--.gradle\caches\transforms-3\879d833172b62a6759a4151e737976da\transformed\jetified-datacollection.jar: R8: Type com.honeywell.IExecutor$Stub$Proxy is defined multiple times: C:\Users--.gradle\caches\transforms-3\879d833172b62a6759a4151e737976da\transformed\jetified-datacollection.jar:com/honeywell/IExecutor$Stub$Proxy.class, D:\Projects---\build\honeywell.transforms\144dc4da4006cd867b23a1b5283fec2e\transformed\jetified-honeywell-runtime.jar:com/honeywell/IExecutor$Stub$Proxy.class

luis901101 commented 8 months ago

Not enough data to help you, check the example project.

AbdallahMohamed220 commented 8 months ago

Hi I also want to said that it only happen in release mode but in debug and profile work fine

AbdallahMohamed220 commented 8 months ago

and if delete file in c it run but function of scan not work

luis901101 commented 8 months ago

It only happens on release because R8 is an optimization tool that only takes place on release unless you manually specify it for debugs. You have to check your gradle confs, to see if there is something causing issues with R8 and honeywell .aar. For instance you can try disabling R8 on release builds using this in your app gradle.conf:

...
buildTypes {
        release {
            minifyEnabled false
            shrinkResources false
            ndk {
                abiFilters 'armeabi-v7a','arm64-v8a'
            }
    }
 ...   

Also check the docs: https://developer.android.com/build/shrink-code