-
Notifications
You must be signed in to change notification settings - Fork 1
Android Project Setup
Aleksandr Chatsky edited this page Nov 14, 2018
·
21 revisions
- You can download our SDK with all required libraries here.
- Unzip the archive to your app library folder (example: my_project\app\libs)
- Add all unzipped libraries in your app Gradle file (how to do that: read more)
Our SDK has a lot of partners and as a result, uses a lot of different libraries which requires for multidex feature. What is multidex and how to enable it you can find here.
Most of manifest settings will be added automatically by Gradle manifest merger.. But we still require you to set up some manifest elements. Please add elements that are between two '' comments to your manifest file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="your.package.name">
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name">
<activity
android:name=".MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Appmediation -->
<!-- Mobvista -->
<receiver android:name="com.mintegral.msdk.click.AppReceiver" >
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<!-- StatApp -->
<receiver android:name="com.startapp.android.publish.common.metaData.BootCompleteListener">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<!-- BAIDU -->
<meta-data
android:name="app_license"
android:value="your_baidu_license" />
<!-- Appmediation -->
</application>
</manifest>
P.S: To get your Baidu license key please contact your Appmediation manager or write to support@appmediation.com
P.S: If you are using AdMob version 17.0.0 or higher then you are required to specify a tag with key com.google.android.gms.ads.APPLICATION_ID in your AndroidManifest.xml. Example:
<manifest>
<application>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ADMOB_APP_ID"/>
</application>
</manifest>