새로운 Android Studio의 APK 위치
새로운 Android Studio를 사용하기 시작했으며 IDE에서 응용 프로그램의 APK를 찾을 수 없습니다. 실제로 어디에 있습니까?
동일한 질문에 대한 답변을 검색 할 수있는 사람들을 돕기 위해 Studio에서 어떤 유형의 프로젝트를 사용하고 있는지 알아야합니다.
그래들
새 프로젝트를 만들 때 기본 프로젝트 유형이며 일반적으로 권장되는 유형은 Gradle입니다.
"Foo"라는 새 프로젝트의 경우 기본 폴더 아래의 구조는
Foo/
settings.gradle
Foo/
build.gradle
build/
내부 "Foo"폴더가 기본 모듈 인 경우 (이 구조를 사용하면 나중에 동일한 구조에서 변경없이 더 많은 모듈을 작성할 수 있습니다).
이 설정에서 생성 된 APK의 위치는
Foo/Foo/build/apk/...
각 모듈은 자체 출력을 생성 할 수 있으므로 실제 출력은 더 높습니다
Foo/*/build/apk/...
편집 생성 된 출력에 대한 최신 버전의 Android Studio 위치 경로는 다음과 같습니다.
Foo/*/build/outputs/apk/...
IntelliJ
Studio로 전환하기 전에 IntelliJ 사용자이고 IntelliJ 프로젝트를 직접 가져 오는 경우 아무런 변화가 없습니다. 출력 위치는 다음과 같습니다.
out/production/...
참고 : 이것은 때때로 약 1.0에서 사용되지 않을 것입니다
식
Android Eclipse 프로젝트를 직접 가져 오는 경우이 작업을 수행하지 마십시오! 프로젝트 (jars 또는 Library Projects)에 종속성이 생기면 작동하지 않으며 프로젝트가 올바르게 설정되지 않습니다. 의존성이 없다면 apk는 Eclipse에서와 동일한 위치에 있습니다.
bin/...
그러나 나는 이것을 하지 않는 것의 중요성을 충분히 강조 할 수 없습니다 .
나는 안드로이드 스튜디오 0.6에 있고 APK는
MyApp/myapp/build/outputs/apk/myapp-debug.apk
공유 할 수 있도록 모든 라이브러리가 포함되었습니다.
에 업데이트 안드로이드 스튜디오 0.8.3 베타 . APK는 이제
MyApp/myapp/build/apk/myapp-debug.apk
Android Studio 0.8.6-2.0 에서 업데이트 . APK는 이제
MyApp/myapp/build/outputs/apk/myapp-debug.apk
실제로 경로를 파헤칠 이유가 없습니다. IDE는 (적어도 버전 1.5.1에서는) 당신에게 건네줍니다.
에서 Build
메뉴 선택 Build APK
:
대화 상자가 나타납니다 :
최신 버전의 Android Studio를 사용하는 경우 다음과 같이 보일 수 있습니다.
Show in Explorer
또는 locate
링크를 클릭하면 Android Studio가 APK 파일을 넣은 곳 근처에 파일 탐색기가 표시됩니다.
그러나 AS 3에서는을 클릭 locate
하면 app
레벨이 표시됩니다. 당신은에 갈 필요가 release
당신 얻을 폴더에 APK
파일을.
제 경우에는 Android Studio 1.0.2를 사용하고 있습니다. APK 파일은 다음에서 가져옵니다.
<myAndroidProject>/app/build/outputs/apk/app-debug.apk
누군가 APK를 놓치고 다른 답변에 명시된 위치에서 찾을 수없는 경우 (이 질문을 찾을 수 없으므로이 질문을 찾았습니다)이 폴더에있을 수 있습니다 (광산)
<project folder>/target/classes/<appname>.apk
나는 또한이 파일을 가지고 있었다 :
<appname>.unaligned.apk
apk가 실제로 생성 된 완전한 APK인지 여부는 확실하지 않지만 다양한 장치 (대상 장치뿐만 아니라 최소 SDK 만 지원하는 장치)에서 시도했습니다. .
이것이 누군가를 도울 수 있기를 바랍니다.
Gradle 프로젝트의 Project_Location / app / build / outputs / apk
apk
아래 단계를 사용하여 찾기 :-
- 프로젝트 폴더로 이동하십시오.
- 프로젝트 폴더를 엽니 다.
build
폴더를 엽니 다 .output
폴더를 엽니 다 .apk
폴더를 엽니 다 .- 이제 당신은 참조하십시오
apk
.
그것이 몸에 도움이 되길 바랍니다
따라서 Android Studio의 APK build
는 앱 모듈의 폴더 안에 생성됩니다 .
apk의 올바른 경로는입니다 \app\build\outputs\apk
. Android Studio 버전 1.4.1을 사용하고 있습니다. 따라서 APK 는 사용중인 Android 스튜디오 버전 에서 app/build/apk/
찾거나 찾을 수 있습니다 \app\build\outputs\apk
. 아래 이미지를 참조하십시오
또한이 링크들에 대한 더 많은 참조를 찾으십시오.
Android Studio와 gradle을 사용하고 있습니다. 프로젝트를 실행할 때만 build / apk / <. apk> 파일을 만들었습니다. 다음을 눌러 프로젝트를 실행하십시오. Alt + u, u
안드로이드 스튜디오 : 0.5.3 Gradle : 0.9. +
APK는 다음에서 찾을 수 있습니다.
YourProject\app\build\outputs\apk
In the new Android Studio, the signed apk is placed directly in the folder of module for which the apk is built.
For example: For a Project ProjectA containing 2 modules Mod1 and Mod2, the apk files will be found in
/path-to-ProjectA/Mod1/Mod1.apk
/path-to-ProjectA/Mod2/Mod2.apk
Image for APK location in Android Studio
The .apk
file is located at [your project]\out\production\[your project name]
Location of apk in Android Studio:
AndroidStudioProjects/ProjectName/app/build/outputs/apk/app-debug-unaligned.apk
As of version 0.8.6 of Android Studio generating an APK file (signed and I believe unsigned, too) will be placed inside ProjectName/device/build/outputs/apk
For example, I am making something for Google Glass and my signed APK gets dropped in /Users/MyName/AndroidStudioProjects/HelloGlass/glass/build/outputs/apk
I got the .apk files in parent_folder/out/production/projectname/projectname.apk
Build your project and get the apk
from your_project\app\build\apk
You can find your apk file as follow:
yourproject>app>build>output>apk>yourproject.apk
The Android build system is the toolkit you use to build, test, run and package your apps. The build system can run as an integrated tool from the Android Studio menu and independently from the command line. You can use the features of the build system to:
- Customize, configure, and extend the build process.
- Create multiple APKs for your app with different features using the same project and modules.
The build process involves many tools and processes that generate intermediate files on the way to producing an .apk
. If you are developing in Android Studio, the complete build process is done every time you run the Gradle build task for your project or modules.
The build process is very flexible so it's useful, however, to understand what is happening under the hood since much of the build process is configurable and extensible. The following diagram depicts the different tools and processes that are involved in a build:
Build a release version
You can now use the Build menu options to build the release version of your application for distribution.
The build generates an APK for each build variant: the app/build/apk/
(or app/build/outputs/apk
) directory contains packages named app--.apk; for example, app-full-release.apk and app-demo-debug.apk.
Build output
The build generates an APK for each build variant in the app/build folder
: the app/build/outputs/apk/ directory
contains packages named app--.apk; for example, app-full-release.apk and app-demo-debug.apk.
Courtesy goes to Build System Overview
If you have imported a Project from Eclipse and are using the new Android Studio The directory
/bin
does exist (there maybe old binaries in here) however with the latest Android Studio update the actual current apk is stored in
/out/production
Add this in your module gradle file. Its not there in default project. Then u will surely find the APK in /build/outputs/apk/
buildTypes {
debug {
applicationIdSuffix ".debug"
}
}
I am using Android Studio 3.0 canary 6.
To build apk,
Click to Build->Build APK(s)
.
After your apk is build, Go to:
C:\Users\your-pc-name\AndroidStudioProjects\your-app-name\app\build\outputs\apk\debug
For Gradle look here: https://docs.gradle.org/current/dsl/org.gradle.api.tasks.SourceSetOutput.html. "For example: Java plugin will use those dirs in calculating class paths and for jarring the content; IDEA and Eclipse plugins will put those folders on relevant classpath."
So its depend on plugin build in configs unless you don't define them explicit in config file.
Click the little gear icon in the project view and make sure "show excluded files" is checked. Otherwise, the IDE will hide output
and several other important directories under $project/$module/build/
.
Hello all above all answers are right you can find the apk through the path in android studio but there is exceptions you can't find the build/output folder some times if you can't see it just go to
app--> app.iml
file and find below line in it :-
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
--> after removing this line you can see the output folder its just the adding more information to above answers as per my experience :)
THANKS!~!
For Android Studio 2.0
C:\Users\UserName\AndroidStudioProjects\MyAppName\app\build\outputs\apk
Here UserName is your computer user name and MyAppName is your android app name
As of Android Studio 3.0 / Gradle Build Tools 3.0.0, APK artifacts can now be found in foo/bar/build/outputs/apk/flavorName/buildType
with respect to your project name, foo
, and your module name, bar
. There is now a directory for each apk
file sorted organized first by flavor (with respect to flavor dimensions) and then by build type.
- open Event Log
- find line: Module 'app': locate or analyze the APK.
- click on locate link to open folder with apk file!
After all: "All built APKs are saved in project-name/module-name/build/outputs/apk/ Build your project LINK
Hint: If you can´t see the app-debug.apk in your debug folder, you have to click on BUILD --> Rebuild Project in Android Studio.
To create apk in android studio,go to build menu->build bundles/apk->build apk
프로젝트의 apk 파일을 만들 것입니다.이 후 apk는
프로젝트 디렉토리-> app-> build-> outputs-> apk-> debug-> app-debug.apk
Build-Build Bundles / Apks-Build Apk를 클릭하십시오.
알림에서 '위치'를 클릭하면 앱 위치가 표시되는 알림이 표시됩니다.
APK 생성을 이미 완료 한 경우 C : \ Users \\ AndroidStudioProjects \\ app \ build \ outputs \ apk \ debug로 이동하십시오.
참고 URL : https://stackoverflow.com/questions/16620366/apk-location-in-new-android-studio
'development' 카테고리의 다른 글
한 번에 여러 패키지로드 (0) | 2020.06.06 |
---|---|
모두 버리고 최신 개정판을 깨끗하게 받으시겠습니까? (0) | 2020.06.06 |
파이썬 로깅의 시간 형식을 사용자 정의하는 방법은 무엇입니까? (0) | 2020.06.06 |
타이프 스크립트 날짜 유형? (0) | 2020.06.05 |
도커를 사용하지만 제외는 복사 (0) | 2020.06.05 |