How to obtain the printSpirit SDK certificate


1. Data preparation

APK package name

For AndroidStudio, please get the package name in build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.0"

    defaultConfig {
        applicationId "cn.printspirt.spirt_exam"  <--- APP The package name is here
        minSdkVersion 16
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
...    

For Eclipse, please get the package name in AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="cn.printspirt.spirt_exam">   <--- APP The package name is here

    <application
...

APK signing certificate fingerprint

Command for debugging version: keytool -list -v -keystore path_to_debug.keystore

To release the version, please use the command: keytool -list -v -keystore path_to_app.keystore

Enter the password, the following interface is displayed

keytool

The general debug version keystore is in the .android directory (linux), the default password is android The keytool is in the bin of the JDK/JRE directory, please set the PATH variable correctly, or use the full path.

2. Obtain LICENSE_ID

Click on android_sdk after registering and logging in

andorid_sdk

Enter the APK package name and signature certificate fingerprint prepared earlier in the position shown to obtain LICENSE_ID.

pkgname_sign

3. Configuration

license.png

The part enclosed by the red box in the above figure is LICENSE_ID, and add the following content in AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"  ...

   <application ...>
      ...
     <meta-data android:name="cn.printspirit.LICENSE_ID" android:value="your sdk license id" />
     ...
   </application>

Leave Your Message

login