![]() From the Use Android Debugger Settings from drop-down menu, you can select an existing run/debug configuration. If you're using an emulator or a rooted device, you can check Show all processes to see all processes. In the Choose Process dialog, select the process you want to attach the debugger to. If there is a “No plugins found” message, press “Search in repositories”. Click Attach debugger to Android process. Now open Android Studio preferences, select the “Plugins” tab, and type “OkHttp Profiler” into a search field. Your app is ready, but you still need to install the plugin. We recommend to enable it only for debug build (BuildConfig.DEBUG), but you can remove it if you want to see requests also in release app. DEBUG) OkHttpClient client = builder.build() Retrofit retrofit = new Retrofit.Builder() ……. ![]() Sync the gradle project to apply the changes and set an interceptor to okhttp client by adding the following code to okhttp client or retrofit:įor raw okhttp client: OkHttpClient.Builder builder = new OkHttpClient.Builder() if (BuildConfig. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |