After updating to Android Studio to version 3.1, I do not get generated apk/aar files from build/outputs directory.
Can anyone has idea where these files actually located?
And yes I am getting it by manually generating from gradle tasks from the same location.
Well I get apk "build\intermediates\instant-run-apk\debug
" here. But no clue about aar from my library project.
Asked
Active
Viewed 1,911 times
2

Nilay Dani
- 896
- 6
- 24
-
it generates apk for me in build->outputs->apk itself – Manohar Mar 28 '18 at 09:40
-
I am getting into build\intermediates\instant-run-apk\debug – Nilay Dani Mar 28 '18 at 09:40
-
click on build -> buildApk , or try disabling instant run – Manohar Mar 28 '18 at 09:41
-
My AARs show up in `build/outputs/aar/`, but I work with Instant Run disabled. – CommonsWare Mar 28 '18 at 10:46
-
try after enabling instant run. this is mysterious :d – Nilay Dani Mar 28 '18 at 10:59
2 Answers
2
I have concluded this:
After updating Gradle tools version to 3.1.0 , you are not able to get the debug apk directly from build folder because of instant apk run support it generates slice apks in folder '\app\build\intermediates\split-apk\debug\slices'
If you want full apk then you may need to downgrade
classpath 'com.android.tools.build:gradle:3.1.0'
to
classpath 'com.android.tools.build:gradle:3.0.0'
It will still builds a full apk but don't support instant run.
Happy Coding !!!

Nilay Dani
- 896
- 6
- 24
2
You can still generate the APK.
Go to Build -> Build APK(s). APK will be generated and a notification will appear in the Android Studio.

Haseeb Elahi
- 46
- 3