# How to make an apk from a processing sketch using command line

**URL:** <https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199>\
**Category:** Processing for Android\
**Created:** [March 11, 2019, 5:27pm UTC](https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199 "2019-03-11T17:27:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![theinfo](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@theinfo](https://discourse.processing.org/u/theinfo)\
**Post date:** [March 11, 2019, 5:27pm UTC](https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199/1 "2019-03-11T17:27:50Z")

</div>

How to make an apk from a processing sketch using command line

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [March 11, 2019, 6:17pm UTC](https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199/2 "2019-03-11T18:17:33Z")

</div>

@theinfo ===  
with AS the answer is here:  
[https://developer.android.com/studio/build/building-cmdline](https://developer.android.com/studio/build/building-cmdline)

(with AS you can acceed directly the terminal from the IDE) - Yet in this moment i cannot see any reason why it is not the same with P5, except if it uses some gradle from its own!)

---

<div class="post-metadata">

**Author:** ![light](https://avatars.discourse-cdn.com/v4/letter/l/2acd7d/32.png) [@light](https://discourse.processing.org/u/light)\
**Post date:** [May 5, 2019, 6:10am UTC](https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199/3 "2019-05-05T06:10:42Z")

</div>

hi… i am unable to use emulator or phone to run the processing sketch…is there any way that i can create an apk file of my android code?

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [May 5, 2019, 9:03am UTC](https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199/4 "2019-05-05T09:03:08Z")

</div>

> [@light](#):
>
> hi… i am unable to use emulator or phone to run the processing sketch…

what do you mean? what have you tried?

---

<div class="post-metadata">

**Author:** ![light](https://avatars.discourse-cdn.com/v4/letter/l/2acd7d/32.png) [@light](https://discourse.processing.org/u/light)\
**Post date:** [May 7, 2019, 9:03am UTC](https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199/5 "2019-05-07T09:03:03Z")

</div>

i tried to run the code by connecting the device using usb …but its not working…also emulator isnt installing so, is there any other option to create an apk file?

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [May 7, 2019, 4:28pm UTC](https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199/6 "2019-05-07T16:28:06Z")

</div>

@light ====  
what happens when your connect your phone to usb?  
(in some cases you need a driver)(in any case you have to activate usb debugging)  
what is your phone? What OS?  
what is your PC? - windows? - MAC?

---

<div class="post-metadata">

**Author:** ![light](https://avatars.discourse-cdn.com/v4/letter/l/2acd7d/32.png) [@light](https://discourse.processing.org/u/light)\
**Post date:** [May 9, 2019, 6:47am UTC](https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199/7 "2019-05-09T06:47:24Z")

</div>

phone-poco f1  
os-windows 10  
pc-dell inspiron 3000

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [May 9, 2019, 7:36am UTC](https://discourse.processing.org/t/how-to-make-an-apk-from-a-processing-sketch-using-command-line/9199/8 "2019-05-09T07:36:01Z")

</div>

@light ===  
the problem is probably with your phone settings: have you enabled developer mode, have you enabled usb install? have you set the security rules? - if yes (for 3) then are you sure that you dont need a driver for windows10 connecting?
