Skip to main content

Development Environment

Setup Environment

Our VGPSDK only supports Android Studio. If you are using Eclipse you must switch to Android Studio.

Android Studio Minimum Version

Android Studio minimum version is 8.13.0. Before integrating you should make sure you use Android Studio version 2024.3.2 Patch 1 at least.

Build Configuration

Update your project-level build.gradle:

buildscript {
repositories {
// Check that you have Google's Maven repository (if not, add it).
google()
}

dependencies {
// update sdk 5.0.x
classpath 'com.android.tools.build:gradle:8.13.0'
classpath 'com.google.gms:google-services:4.3.15'
}
}

allprojects {
repositories {
// Check that you have Google's Maven repository (if not, add it).
google()
}
}

Add VGP Repositories to Project

At build.gradle top level, add VGP repo VGP SDK into repositories block inside allprojects block:

allprojects {
repositories {
//..
maven {
name 'nexus-vgp'
url "https://repo.vgplay.vn/repository/maven-releases/"
credentials {
username "partner"
password "d9hP*?tt"
}
}
mavenCentral()
// tiktok sdk
maven { url 'https://jitpack.io' }
}
}

Unity NDK Version

For Unity projects, ensure you are using Unity NDK version 28.0.13004108 or compatible version. This NDK version is required for proper compilation and compatibility with VGPSDK.

Important: This NDK version is specifically required to fix Google Play 16KB page size compatibility issues. Starting November 1st, 2025, all new apps and updates targeting Android 15+ devices must support 16KB page sizes.

For detailed information about 16KB page size support, see the Android Developer Guide.

Dependencies

Add the following dependencies to your app-level build.gradle:

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.android.material:material:1.8.0'
implementation 'androidx.core:core:1.6.10'

// Google Firebase
implementation platform('com.google.firebase:firebase-bom:34.2.0')
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.android.gms:play-services-auth:21.3.0'

// Facebook
implementation 'com.facebook.android:facebook-core:18.1.3'
implementation 'com.facebook.android:facebook-login:18.1.3'
implementation 'com.facebook.android:facebook-share:18.1.3'

// Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'

// Gson body parser
implementation 'com.google.code.gson:gson:2.13.1'

// RxAndroid
implementation 'io.reactivex.rxjava3:rxandroid:3.0.2'
implementation 'io.reactivex.rxjava3:rxjava:3.1.10'

// Image
implementation 'com.github.bumptech.glide:glide:4.16.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'

// Google IAP
implementation 'com.android.billingclient:billing:7.1.1'

// Resolution scale
implementation 'com.intuit.sdp:sdp-android:1.1.1'
implementation 'com.intuit.ssp:ssp-android:1.1.1'

// Database
implementation 'androidx.room:room-runtime:2.7.1'
annotationProcessor 'androidx.room:room-compiler:2.7.1'
implementation 'androidx.room:room-rxjava3:2.7.1'

// Life cycle
implementation 'androidx.lifecycle:lifecycle-process:2.9.1'
implementation 'androidx.lifecycle:lifecycle-livedata:2.9.1'

// VGP SDK
implementation 'vn.vgpjsc:vgpsdk:5.1.6'

// Adjust
implementation 'com.adjust.sdk:adjust-android:5.5.0'
implementation 'com.google.android.gms:play-services-ads-identifier:18.3.0'
implementation 'com.adjust.sdk:adjust-android-meta-referrer:5.5.0'
implementation 'com.android.installreferrer:installreferrer:2.2'
// websocket
implementation 'org.java-websocket:Java-WebSocket:1.6.0'

// Tiktok
implementation 'com.github.tiktok:tiktok-business-android-sdk:1.3.6'
}

Note: marvenUser and mavenPassword included in document.