简体   繁体   中英

Where does Android Studio 3.1 store generated apk/aar files?

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.

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 !!!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM