简体   繁体   English

在没有广告的调试模式下运行 android studio 应用程序?

[英]Run android studio app in debug mode without ads?

Is there an easy way to deactivate ads in debug mode?有没有一种简单的方法可以在调试模式下停用广告? I'm getting annoyed from my own test ads while building my app:DI am using IronSource mediation.在构建我的应用程序时,我对自己的测试广告感到恼火:DI 正在使用 IronSource 中介。

Just add an if statement to check if you're in the debug mode or release mode:只需添加一个if语句来检查您是处于调试模式还是发布模式:

  if (!BuildConfig.DEBUG) {
       showAds();
    }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android Studio,应用程序将无法运行而不会崩溃 - Android Studio, app will not run without crashing Android 应用程序在调试模式下完美运行,但在运行模式下冻结 Java - Android app works perfectly in Debug mode but Freeze up in Run mode Java 如何使用Eclipse在调试模式下运行Dropwizard应用程序? - How to run Dropwizard app in debug mode with Eclipse? 应用程序适用于调试步进,但不适用于正常调试或运行模式 - App works on debug stepping but not on normal debug or run mode Firebase 实时在调试模式下工作,而不是在运行应用程序模式下工作 - Firebase Realtime works in Debug mode not in Run App mode Android Studio:从 Run 'app' 安装的应用程序和从 build/outputs/apk/debug/app-debug.apk 安装的应用程序是不同的 - Android Studio: The application installed from Run 'app' and application installed from build/outputs/apk/debug/app-debug.apk are different android studio不再运行/调试(安装)RenderScript应用程序到移动设备了 - android studio no longer run/debug (install) RenderScript app to mobile device anymore Android Studio-Admob插页式广告集成会导致应用崩溃 - Android studio - Admob interstitial ads integration causes the app to crash 使用调试模式“ Android Studio”时,调试器显示为空 - Debugger shows empty when using debug mode “Android Studio” 将Android应用程序作为Java程序运行以进行调试 - Run android app as java program to debug
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM