New Relic Class Not Found … I don't even use new relic

邮差的信 提交于 2019-11-30 08:21:17

It looks like Android Studio switched over to the gradle daemon for faster builds. Unfortunately, this caches parts of the New Relic agent and it's necessary to stop the daemon when you switch to a project without the agent (or a different version. You can accomplish this simply by running:

gradle --stop

You'll also want to clean your project to ensure the classes are rebuilt and dexed.

While this should get you up and running for now, we'll work on a fix for this issue right away and you can expect it in the next version of the agent.

./gradlew --stop
./gradlew cleanBuildCache
./gradlew clean

works for me

I tried gradle --stop but it didn't work.

Delete .gradle directory and sync project again, it worked.

I faced the weird issue of NoClassDefFoundError in kitkat. but it was working fine on lollipop.

I tried all the above fix but didn't work.

Finally I come to know that its because of multidex error. I crossed 65k method. So,I followed this tutorial from android developer site. and worked like charm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!