Setting HMS Kit in android studio bumble bee

 



setting gradle HMs Kit Success in bumble bee

pada kotak warna hijau atau settings.gradle  codenya seperti berikut :

pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven {url 'https://developer.huawei.com/repo/'}
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {url 'https://developer.huawei.com/repo/'}
}
}
rootProject.name = "AccountKitDemo"
include ':app'



selanjutnya pada Kotak warna Orange atau buildgradle project code sebagai berikut :

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven {url 'https://developer.huawei.com/repo/'}
}
dependencies {
// Add the AppGallery Connect plugin configuration. You are advised to use the latest plugin version.
classpath 'com.android.tools.build:gradle:7.0.3'
classpath 'com.huawei.agconnect:agcp:1.5.2.300'
}
}

plugins {
id 'com.android.application' version '7.1.2' apply false
id 'com.android.library' version '7.1.2' apply false

}

task clean(type: Delete) {
delete rootProject.buildDir
}


selanjutnya pada build gradle yang warna ungu atau build.gradle pada app codenya sebagai berikut :

plugins {
id 'com.android.application'
id 'com.huawei.agconnect'

}

android {
compileSdk 31

defaultConfig {
applicationId "demo.accountkit.agus"
minSdk 21
targetSdk 31
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs{
release{
storeFile file('accountkit.jks')
keyAlias 'key'
keyPassword '123456'
storePassword '123456'
v1SigningEnabled true
v2SigningEnabled true
}
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {

implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.huawei.hms:hwid:6.4.0.300'
}

jangan lupa letakan code signingConfigs jks di atas buildtypes 

dan kemudian  letakkan file jks di folder app sejajar dengan src, untuk konfigurasi berikutnya sama seperti konfigurasi biasanaya


terimakasih semoga bermanfaat




Read More

Comments

3-comments

FOLLOW ME

LATEST

3-latest-65px

Featured Post

© . All rights reserved.

Archive

Latest video-course

1-tag:Videos-800px-video

Campus

4-tag:Campus-500px-mosaic

About

This just a demo text widget, you can use it to create an about text, for example.

Testimonials

3-tag:Testimonials-250px-testimonial

Header Background

Header Background
Header Background Image. Ideal width 1600px with.

Popular Posts

Logo

Logo
Logo Image. Ideal width 300px.

Section Background

Section Background
Background image. Ideal width 1600px with.

Section Background

Section Background
Background image. Ideal width 1600px with.

Sections-BTLabels

Ads block

Banner 728x90px

Courses

6-latest-350px-course

Section Background

Section Background

Search This Blog

Widget HTML Atas

SECCIONS

Widget HTML Produk

Widget HTML Jasa

Advertisement

Main Ad

Categories

10 permasalahan 59 62 63 64 79 Tahun 2014 administrator adobeprimer aktivasi windows 10 android studio aplikasi aplikasi idm aplikasi klinik aplikasi raport K13 ar augmented reality aulogisbootspeed banner basic belajar Belajar Logika Informatika Bingkai PSHT Bingkai bingkai Sertifikat blender blog penjualan blogger jualan bobol wifi C++ Canon IP2770 cara bobol wifi cara buat blog cara buatweb cara install cms cara install wordpress cara membuat blog penjualan cara mengguanakan vpn cek pc cek produk key pc cek serial number pc CI ci4 class cms cms wordpress codeigniter contoh mehtod crack crud CI4 dapodik dapodik terjadi kesalahan dasar data daun sirih desaign desain medali desain sertifkat devc dowload software download download vpn erorr 500 file firewall formulir formulir penilaian p[ertandingan pencak silat formulir pertandingan free freebish function gratis hack wifi hacker wifi hacking handler herbal hms hms kit http 500 huwawei idm idm terbaru instalasi install worpress internet download manager ioncubeloader ip address jam jaringan javascript json kesahatan kodeigniter kodinglangka komputer komputer lemot kotlin Kumpuran Permendikbud No. 61 logo make address manampilkan gambar di wa manfaat daun sirih mars psht marspsht masalah pc medali membuat blog jualan membuat web membuat website mencegah seraangan hacjer mengatasi dapodik bermasalah mengatasi masalah ci mengatasi masalah pc menggunakan vpn menghitung selisih waktu mikrotik motivasi mysql mysql tidak runnig di xampp Native network networking node nodejs obat herbal obyek oop pekerjaan peluang pencak silat pendidikan pengertian cms penjualan pergaulan Permasalahan Komputer pertandingan pesilat.png Photoshop php php native php oop piagam png print printer Printer IP2770 property psht PSHT Cup Bandar Lampung psht jaya raport K13 raport SD K13 Rekam medis rekammedis selisih jam php seo sertifikat sertifikat psht sh cup sharing sharing printer sharingdata sharingfile sirih hijau sirih merah software software bandicam software terbaru software vidio sofware idm source code source code raport K13 sourcecode SQL system telnet turbo vpn tutorial tutorial dasar web tutorial oop tutorial php tutorial sql tutorial web tutorialjaringan ukuran idcard unity update bagan video vpn vuvoria web web dasar web simple website widows10 wifi hack wifi telnet windows windows defender windows8 wordpress worpress xampp

SEARCH

FOLLOW US

Popular

SEARCH