Can't create .apk in Android studio 1.3?

I am currently trying to run the "Hello Gimbal Android" sample application using Android Studio 1.3 (Updated Jul 28, 2015)

Follow the instructions in sequence:

  • Sample cloning app from github.
  • Importing a project into Android Studio
  • Fill in the API key in MainActivity.
  • Add jars from Gimbal SDK libs directory to project libs directory
  • The last step - to build the project (using the Create β†’ Make Project )

It builds successfully as shown in the big console, but after that I go looking for it can't find the .apk file.

Anyone have any experience? Any hint?

Executing tasks: [:app:compileDebugSources, :app:compileDebugAndroidTestSources]

Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72200Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42200Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJava
:app:compileDebugNdk UP-TO-DATE
:app:compileDebugSources
:app:preDebugAndroidTestBuild UP-TO-DATE
:app:prepareDebugAndroidTestDependencies
:app:compileDebugAndroidTestAidl UP-TO-DATE
:app:processDebugAndroidTestManifest UP-TO-DATE
:app:compileDebugAndroidTestRenderscript UP-TO-DATE
:app:generateDebugAndroidTestBuildConfig UP-TO-DATE
:app:generateDebugAndroidTestAssets UP-TO-DATE
:app:mergeDebugAndroidTestAssets UP-TO-DATE
:app:generateDebugAndroidTestResValues UP-TO-DATE
:app:generateDebugAndroidTestResources UP-TO-DATE
:app:mergeDebugAndroidTestResources UP-TO-DATE
:app:processDebugAndroidTestResources UP-TO-DATE
:app:generateDebugAndroidTestSources UP-TO-DATE
:app:compileDebugAndroidTestJava
:app:compileDebugAndroidTestNdk UP-TO-DATE
:app:compileDebugAndroidTestSources

BUILD SUCCESSFUL

Total time: 5.7 secs

      

Note:

I am using ubuntu 14.04, downloaded Android SDK and set up PATH as well.

+3


source to share


2 answers


When you just build, you don't get apk.

For an unsigned apk you need to either - Run the application (Run> Run "Your Project")
 - Build the Task from the Gradle panel (present on the right side of Studio) or from the embedded terminal window at the bottom (at the root of the project)



Then apk is in $YOUR_PROJECT/$YOUR_MODULE/build/outputs/apk

For signed apk use Build -> Generate Signed APK

+2


source


If you look at the Gradle

Console it Rebuild Project

says something like ...:



See here. May help you ...

+1


source







All Articles