Android Studio to use Eclipse signature file is packaged

1 Introduction


Recently migrated from an old project to Android Studio Eclipse up in the test APK cover the installation when there is a problem. Directly in the "Genetate Signed APK" Import Eclipse signature file, and then break out the APK installation in coverage when the error. Access to relevant information, to find a solution .


2. Solution


① Select the item, click on File -> Project Structure




② Select the app -> Signing, and then click on the "+" to add a signature configuration item, the last is to import the Eclipse signature file, and write information, click OK, wait Gradle compiled




③ After the above steps successfully, repeat step ①, and then select the app -> Build Types -> release -> Signing Config -> release (this is the step ③ generated signature configuration), click OK, wait compiled Gradle




④ After completing the above steps, a few lines are automatically generated in the configuration file app build.gradle main module, particularly the red box shown in FIG.




⑤ The next step is packaged, Build -> Generate Signed APK, then pour the Eclipse signature file, enter a password, this way to break out of APK will cover the installation no longer causes the failure of the



Published 43 original articles · won praise 34 · views 90000 +

Guess you like

Origin blog.csdn.net/Fantasy_Lin_/article/details/79251641