android - Install referrer receiver was accidentally left in the manifest file after I removed the referrer SDK -


i have removed appnext sdk project. however, forgot remove appnext install referral receiver. version passed gradle build without error or warning though should have failed build! (since referenced sdk no longer part of project). question why android studio/gradle didn't @ least warned me @ build time?

here relevant code snippet manifest file:

the appsflyer install receiver first , broadcast receivers placed below it. although library provides additional services, if use proguard part of build process, has light footprint. use ads packages google services. if want optimize size of project can exclude other packages. more details see: https://support.appsflyer.com/hc/en-us/articles/207032126-appsflyer-sdk-integration-android --> <receiver     android:name="com.appsflyer.multipleinstallbroadcastreceiver"     android:exported="true">     <intent-filter>         <action android:name="com.android.vending.install_referrer" />     </intent-filter> </receiver>  <!-- appnext install referral receiver --> <receiver     android:name="com.appnext.appnextsdk.referralreceiver"     android:exported="true">     <intent-filter>         <action android:name="com.android.vending.install_referrer" />     </intent-filter> </receiver> 

you can see exception stack trace below (just bit late :( ):

fatal exception: java.lang.runtimeexception: unable instantiate receiver com.appnext.appnextsdk.referralreceiver: java.lang.classnotfoundexception: didn't find class "com.appnext.appnextsdk.referralreceiver" on path: dexpathlist[[zip file "/data/app/com.infibond.infi-1/base.apk"],nativelibrarydirectories=[/data/app/com.infibond.infi-1/lib/arm, /vendor/lib, /system/lib]]        @ android.app.activitythread.handlereceiver(activitythread.java:2992)        @ android.app.activitythread.access$1800(activitythread.java:177)        @ android.app.activitythread$h.handlemessage(activitythread.java:1507)        @ android.os.handler.dispatchmessage(handler.java:102)        @ android.os.looper.loop(looper.java:135)        @ android.app.activitythread.main(activitythread.java:5910)        @ java.lang.reflect.method.invoke(method.java)        @ java.lang.reflect.method.invoke(method.java:372)        @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1405)        @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1200) caused java.lang.classnotfoundexception: didn't find class "com.appnext.appnextsdk.referralreceiver" on path: dexpathlist[[zip file "/data/app/com.infibond.infi-1/base.apk"],nativelibrarydirectories=[/data/app/com.infibond.infi-1/lib/arm, /vendor/lib, /system/lib]]        @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:56)        @ java.lang.classloader.loadclass(classloader.java:511)        @ java.lang.classloader.loadclass(classloader.java:469)        @ android.app.activitythread.handlereceiver(activitythread.java:2987)        @ android.app.activitythread.access$1800(activitythread.java:177)        @ android.app.activitythread$h.handlemessage(activitythread.java:1507)        @ android.os.handler.dispatchmessage(handler.java:102)        @ android.os.looper.loop(looper.java:135)        @ android.app.activitythread.main(activitythread.java:5910)        @ java.lang.reflect.method.invoke(method.java)        @ java.lang.reflect.method.invoke(method.java:372)        @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1405)        @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1200) 

the exception stack trace above clear me , logical. after have removed app next library project , left on forgot. why happened not question, question why android studio let me compile & build project without raising single warning in gradle console? have not changed default lint properties. moreover, when open manifest file android studio, mark line "android:name="com.appnext.appnextsdk.referralreceiver" error. when built project not warn me that.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -