Recent

Author Topic: How to release APK by LAMW output files.  (Read 2446 times)

developing

  • New Member
  • *
  • Posts: 26
How to release APK by LAMW output files.
« on: August 18, 2017, 11:17:57 pm »
Hi all,

If use LAMW to create APK file, output file be like projectName-debug.apk that mean your APK is in debug mode. For solve this problem (for me this is a problem) you must follow below article:

1- Download attached file.

2- Change extension of this file from ".txt" to ".bat".

3- Change 2nd line of this file to your project name, in the below line:
      
Code: Diff  [Select][+][-]
  1. SET APP_NAME=aProject
      change "aProject" to your project name.

4- Change 3rd line of file to your project path, in the below line:
      
Code: Diff  [Select][+][-]
  1. SET ProjectPath=L:\Projects\LAMW\%APP_NAME%
      change "L:\Projects\LAMW" to path of your project folder.

5- Change 4th line of file to path of your Android SDK folder, in the below line:
      
Code: Diff  [Select][+][-]
  1. SET ANDROID_HOME=L:\android-sdk
      change "L:\android-sdk" to Android SDK path on your OS.

6-Change 5th line of file to your JDK folder path, in the below line:
      
Code: Diff  [Select][+][-]
  1. SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0_31\bin
      change "C:\Program Files\Java\jdk1.8.0_31" to JDK folder path on your OS.

7- Change 6th line of file to target of android version, in the below line:
      
Code: Diff  [Select][+][-]
  1. SET APK_SDK_PLATFORM=%ANDROID_HOME%\platforms\android-19
      change "android-19" to your custom version.

8- Change 7th line of file to your version that selected in previous step, in the below line:
      
Code: Diff  [Select][+][-]
  1. SET SDK_BUILDTOOLS=19.0.0
      change "19.0.0" to your custom version that selected in previous step.

9- Change 8th line of file to password that you want use it, in the below line:
      
Code: Diff  [Select][+][-]
  1. SET PASSWORD=123456
      change "123456" to your custom password.

10- Save this changes and run it.

Enjoy your released APK project.


At the end of this article I must thank to Jose Marques Pessoa for refer to my user id in "readme_get_start.txt" file, But I think if you change my id to my name, it will be great.

I'm Ahmad Bohloolbandi a student from Iran.

Thanks regards

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: How to release APK by LAMW output files.
« Reply #1 on: August 18, 2017, 11:22:34 pm »

Hello,  Ahmad!

I will fix your name in  "readme_get_start.txt"" and to add you new tutorial to LAMW stuff!

Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

c4p

  • Full Member
  • ***
  • Posts: 157
Re: How to release APK by LAMW output files.
« Reply #2 on: August 23, 2017, 10:24:29 am »
This works and generates an apk fine.
« Last Edit: September 29, 2017, 08:13:53 pm by c4p »
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

 

TinyPortal © 2005-2018