Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create unsigned apk

I am using InteliJ IDEA for making my android project. I am wondering is it unsigned apk in out/production folder?

Another way is I try to create unsigned apk from project Structure/artifact ---> Android Application ---> From modul 'MyModule'. Then I set path where it should be located. After making a project it was created MyModule.apk but when I want to install this apk file in my device it said that 'Application not installed'.

Please could anyone tell me what should do in artifact for getting result. I assume that the resources not completely added in apk. I read docs in InteliJ Idea help but I couldn't get positive result.

like image 441
fish40 Avatar asked Nov 09 '13 09:11

fish40


1 Answers

I am going answer my own question. I found solution.

UPDATE: I couldn't install apk bcoz unsigned apk cannot be install. For installing you have to sign it with certificate (debug or release).

In out/production folder apk is signed with debug key, its not unsigned.

If someone has a problem creating unsigned apk. here is the answer.

If you are using InteliJ IDEA or Android Studio.

https://www.jetbrains.com/idea/help/generating-an-unsigned-release-apk.html

If you are using eclipse use this

To export an unsigned APK from Eclipse, right-click the project in the Package Explorer and select Android Tools > Export Unsigned Application Package. Then specify the file location for the unsigned APK. (Alternatively, open your AndroidManifest.xml file in Eclipse, select the Manifest tab, and click Export an unsigned APK.)

With Ant

If you are using Ant, you can enable release mode by using the release option with the ant command. For example, if you are running Ant from the directory containing your build.xml file, the command would look like this:

$ ant release

By default, the build script compiles the application APK without signing it. The output file in your project bin/ will be -unsigned.apk.

http://developer.android.com/tools/publishing/app-signing.html

like image 138
fish40 Avatar answered Oct 22 '22 18:10

fish40