Current location - Quotes Website - Signature design - DMSDPAdapterProxy: Failed to get authentication. Service is empty.
DMSDPAdapterProxy: Failed to get authentication. Service is empty.
Using Huawei's device virtualization capability dvkit, we have completed a series of configurations in official website, including new projects and applications, keystore configuration, the ability to upload sha256 and contact the official authorized kit. Later, when developing and debugging the application, I found an error:

solution

The reason is that the program can't run because the debugging signature is used. Android studio runs with debug signature by default, and then generates app-debug.apk under APP-BUILD-OUTPUTS-DEBUG. However, the official strictly restricts the operation behavior of dmsdp authorized by unsigned certificates. Solution:

1, use build-generate to sign package /apk, use. Jks file generated under the guidance of official website generates the released version of apk, which is installed on the mobile phone with adb command. The disadvantage of this scheme is that it cannot be debugged.

2. Set the signature information in gradle, or set the debugging switch flexibly (as required), and refer to Android debugging signature and publishing signature.