It turns out that an Android Studio "build" just compiles the essential 
parts to verify that your project makes sense.  It doesn't produce an APK.  
You can see in the status bar what gradle tasks it's running at any moment. 
Studio will only produce an APK when you go to run it on a device.

Since Studio just delegates to gradle for all of its build activity, you 
too should just use the gradle command line if you want a particular build 
artifact.  After you run the assemble[Debug|Release] target, you can find 
the resulting APK by running the following command line on unix-y type 
machines:

find . -name \*.apk

where . is the location of the project root directory where you probably 
issued the gradle command.

Bottom line is that it's essential to learn the gradle way of doing things 
if you're going to be using Studio, since Studio builds all delegate to 
gradle.  This is a good thing -- your IDE should not be the thing 
responsible for producing your build artifacts.

Doug

On Monday, April 27, 2015 at 12:52:26 PM UTC-7, Spooky wrote:
>
> Ok, I give up....  All of the posts (StackOverflow, etc.) I've found that 
> tell me where Android Studio puts the apk file after a "Build Project" or 
> "rebuild project" point me to directories that don't exist on my Mac. 
>
> Where, after a successful project build in Android Studio, do I find the 
> unsigned apk (in this case, listViewTest.apk) to load onto my various 
> Android devices (cp to ~/Dropbox and side-load from each)?  This is 
> driving me nuts.....  It does build with no errors, and says the build 
> was completed.  But where is the apk file it generates?  One says it's 
> in app/build/outputs/apk/name.apk ... but app/build/outputs/apk doesn't 
> even exist, which makes it a bit difficult for the apk to be there. 
>
> Thanks, 
>    --jim 
>
> PS:  And I thought *EclipsE* was a major PITA (ok, it is, but....). 
>
> -- 
> THE SCORE:  ME:  2  CANCER:  0 
> http://fineartamerica.com/profiles/4-james-graham.html 
> 73 DE N5IAL (/4)          | AN EXCERCISE is a situation in which you stop 
> what 
> [email protected] <javascript:>      | you're doing in order to simulate 
> doing what you 
> < Running Mac OS X Lion > | were doing so you can show someone else that 
> you 
> ICBM / Hurricane:         | can simulate what you were doing as well as 
> you 
>    30.44406N 86.59909W    | were doing it before you were interrupted. 
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to