简体   繁体   中英

Android studio and emulator

在此处输入图像描述 在此处输入图像描述 在此处输入图像描述 Hello i'm trying to add ad to my android studio project but when I start my emulator, the application keeps stopping. I did everything like I have to do it, 5 times I restarted but always an error. Please help me thanks

This documentation will help you according to your problem. https://developers.google.com/admob/android/quick-start

You should add this code to your manifest.xml file.

<application
        ...>

        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="ca-app-pub-3940256099942544~3347511713"/>

</application>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM