Instabug / Instabug-Android

In-app feedback and bug reporting tool for apps.
https://instabug.com/
Other
188 stars 38 forks source link

Instabug gradle android doesnt work properly. #446

Closed Wridho788 closed 1 year ago

Wridho788 commented 1 year ago

i tried using APM.setFragmentSpansEnabled(true) and added method Instabug { APM { fragmentSpansEnabled true } } in build.gradle and I don't know whether to put it in build.gradle (app) or build.gradle (project)

IslamMohamady commented 1 year ago

Hi @Wridho788

You need to add

classpath "com.instabug.library:instabug-plugin:11.7.0"

in your project build.gradle > buildscript > dependencies clause

Then add

apply plugin: 'instabug-apm'

to your application build.gradle And

Instabug { APM { fragmentSpansEnabled true } }

Needs to be added also in the application build.gradle

Wridho788 commented 1 year ago

I've added a classpath, apply the plugin exactly as you said, But what for fragments in Android Apps never displays the results of apm

IslamMohamady commented 1 year ago

@Wridho788 Can you reach out to our customer support from Instabug dashboard? So we can better help you 🙏🏻

Wridho788 commented 1 year ago

Instabug { APM { fragmentSpansEnabled true } } for this method I don't know where to put it in the method line. I've put the method in build.gradle :app, but after I synced the gradle, I got this error so I can't build gradle. No signature of method: build_3eyv4ig9d99caqujngq3ed2yf.android() is applicable for argument types: (build_3eyv4ig9d99caqujngq3ed2yf$_run_closure1) values: [build_3eyv4ig9d99caqujngq3ed2yf$_run_closure1@6ac9c7a4]

IslamMohamady commented 1 year ago

I will be closing this issue as we have an ongoing discussion on intercom