Apane endroid app mein phaayarabes joden

Prerequisites



  • The latest version of Android Studio

Yadi aapake paas pahale se hee endroid stoodiyo project nahin hai, to aap hamaare kvikastaart namoone mein se ek daunalod kar sakate hain yadi aap keval phaayarabes suvidha ka prayaas karana chaahate hain. yadi aap kvikastaart ka upayog kar rahe hain, to apane projekt ke modyool foldar (aamataur par app /) mein build.gradlai fail se eplikeshan id praapt karana yaad rakhen, kyonki aapako agale charan ke lie is paikej naam kee aavashyakata hogee.


Not: yadi aap phaayarabes esadeeke ke 2.x version se apagred kar rahe hain, to shuroo karane ke lie endroid ke lie hamaaree apagred Guides, dekhen.

Apane app ko phaayarabes me joden

Yadi aap endroid stoodiyo version 2.2 ya baad mein upayog kar rahe hain, to faayarabes sahaayak aapake app ko phaayarabes mein jodane ka sabase aasaan tareeka hai. sahaayak aapake maujooda project ko kanekt kar sakata hai ya sabhi aavashyak gradle dependencies ke saath aapake lie ek naya bana sakata hai.

Yadi aap endroid stoodiyo ke puraane version ka upayog kar rahe hain ya ek complex project configuration hai, to bhee aap apane app mein mainyual roop se faayarabes jod sakate hain.

Phaayarabes sahaayak ka prayog karen

Endroid stoodiyo mein phaayarabes sahaayak kholane ke lie:


  • Sahaayak vindo kholane ke lie tools> phaayarabes par clik karen.



  • Soochebadh suvidhao mein se kisee ek ko vistaarit karane ke lie Click karen (udaaharan ke lie, analytics), phir pradatt tyootoriyal link par click karen (udaaharan ke lie, ek analytics event log karen).



  • Phaayarabes se kanekt karane ke lie phaayarabes batan par click karen aur apane app mein necessary code joden.


Bas! aap agale charanon mein aage ja sakate hain.

Mainyual roop se phaayarabes joden

ab aapake app mein phaayarabes jodane ka samay hai. aisa karane ke lie aapako apane app ke lie faayarabes project aur faayarabes konfigareshan fail kee aavashyakata hogee aur app ki.

Phaayarabes pariyojana banaane ke lie:

1 yadi aapake paas pahale se koi nahi hai, to faayarabes kansol mein faayarabes pariyojana banaen. project joden par click karen. yadi aapake paas pahale se hee aapake mobaile app se juda ek maujooda googlai project hai, to ise project naam drop daun menoo se chunen. anyatha, ek new pariyojana banaane ke lie ek pariyojana naam darj karen.


2 Vaikalp: apanee pariyojana id sampaadit karen. aapakee pariyojana ko svachaalit roop se ek aditeey id di jaati hai, aur isaka upayog saarvajanik roop se drshyamaan faayarabes suvidha jaise databes URL aur aapake phaayarabes hosting sabadomen mein kiya jaata hai. yadi aap ek vishisht sabadomen ka upayog karana chaahate hain to aap ise abhee badal sakate hain.

3 Dhesh setap charanon ka paalan karen aur apanee pariyojana ke lie praavadhaan sadhan shuru karane ke lie project banay (ya yadi aap kisee maujooda project ka upayog kar rahe hain to faayarabes joden) par click karen. yah aamataur par kuchh minat leta hai. jab prakriya puri ho jaati hai, to aapako pariyojana ke avalokan mein le jaaya jayga.

Ab jab aapake paas ek projekt hai, to aap ise apane endroid app ko jod sakate hain:

1 Apane endroid app mein phaayarabes jodane par click karen aur setap charanon ka paalan karen. yadi aap maujooda googlai project aayaat kar rahe hain, to 6yah svachaalit roop se ho sakata hai aur aap keval konfigareshan fail daunalod kar sakate hain.

2 Sanket milane par, apane app ka paikej naam darj karen. aapake app ka upayog kar rahe paikej naam ko darj karana mahatpoorn hai; yah keval tabhee set kiya ja sakata hai jab aap apane phaayarabes pariyojana mein app jodate hain.

3 Prakriya ke dauraan, aap ek googlai-services.json fail daunalod karenge. aap kisee bhee samay is phail ko phir se lod karen.

4 Initialization code jodane ke baad, faayarabes kansol par satyaapan bhejane ke lie apana app chalaen jise aapane saphalataapoorvak faayarabes sthaapit kiya hai.




Not: yadi aapake paas paribhaashit vibhinn paikej naamon ke saath ekaadhik bild verient hain, to pratyek app ko aapake project mein phaayarabes kansol mein joda jaana chaahie.



Add the SDK

Yadi aap phaayarabes pust kaalayon ko apanee khud kee pariyojanao mein se ek mein ekeetr karana chaahate hain, to aapako apane endroid stoodiyo project ko taiyaar karane ke lie kuchh buniyaadee kaary karane kee aavashyakata hai. aap apane app mein phaayarabes jodane ke hisse ke roop mein ise pahale se hee kar chuke hain.

Sabase pahale, googlai-service plagin aur googlai ke meven ripojitaree ko shaamil karane ke lie, apanee root-stareey build.gradlai fail mein niyam joden:

buildscript {
    // ...
    dependencies {
        // ...
        classpath 'com.google.gms:google-services:4.0.1' // google-services plugin
    }
}

allprojects {
    // ...
    repositories {
        // ...
        google() // Google's Maven repository
    }
}

Phir, apane modyool mein gradle fail (aamatur par app / build.gradle), gradle plagin ko saksham karane ke lie fail ke nichale hisse mein laagoo plagin lain joden:

apply plugin: 'com.android.application'

android {
  // ...
}

dependencies {
  // ...
  implementation 'com.google.firebase:firebase-core:16.0.1'

  // Getting a "Could not find" error? Make sure you have
  // added the Google maven respository to your root build.gradle
}

// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'

apply plugin: 'com.android.application' android {   // ... } dependencies {   // ...   implementation 'com.google.firebase:firebase-core:16.0.1'     // Getting a "Could not find" error? Make sure you have   // added the Google maven respository to your root build.gradle } // ADD THIS AT THE BOTTOM apply plugin: 'com.google.gms.google-services'
Aapako un phaayarabes esdeeke ke lie nirbharata bhee jodanee chaahie jinhen aap upayog karana chaahate hain. ham chom.googlai.firaibasai se shuroo karane kee salaah dete hain: phaayarabes-kor, jo faayarabes kaaryakshamata ke lie googlai analytichs pradaan karata hai. upalabdh pust kaalay kee soochee dekhe. .

Not: graidal plagin ke baare mein aur jaanane ke lie, hamaaree googlai seva graidal plagin maargadarshika dekhen

Available libraries

Nimnalikhit pustakaalay vibhinn phaayarabes suvidhaon ke lie upalabdh hai.


Previous
Next Post »

Popular Posts