Android Studio emulator errors warnings issue

– check errors, warnings in build.gradle and other files
– Sync project
– Clean project
– Rebuild project
– restart Android Studio
– restart ADB
– update Tools, libraries, etc.

Speed Up Gradle Build In Android Studio

-a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Unexpected error while executing: am start -n

Try run app again, or open app from emulator.

Admob not visible on emulator:

InterstitialAd
Use listener
in https://firebase.google.com/docs/admob/android/existing-app

// onCreate
mInterstitialAd .setAdListener(new AdListener(){
public void onAdLoaded(){
interstitial.show();
}
});
// ! onCreate

public void displayInterstitial (){
if (mInterstitialAd.isLoaded()) {
mInterstitialAd.show();
}
}

Ads: There was a problem getting an ad response. ErrorCode: 0
Solution:
Update Android with Google APIs. Run emulator Android xx with (Google APIs)
module.gradle
Check:
compile ‘com.google.android.gms:play-services:8.4.0′
Maybe you have to update version of play-services.

This entry was posted in Android Studio, Bugs, warnings, errors and tagged , . Bookmark the permalink.


Comments are closed.

1,875 views