简体   繁体   中英

I can't generate a signed apk / abb file from my android studio

I have a completely working ( no errors ) android studio. and i tried running it on the emulator, which was successfully accomplished, 应用程序在模拟器上成功运行

but when i try to generate a signed apk, the build throws 3 errors,

Execution failed for task ':app:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     C:\Users\haamh\Downloads\only\Android-WebView-in-Kotlin-master\app\src\main\AndroidManifest.xml:11:5-45:19: AAPT: error: resource mipmap/ic_launcher (aka com.onlywin.hhh:mipmap/ic_launcher) not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


构建日志

But i have all those three folders/assets in my project and i have even tried replacing ie deleteing the whole minimap directory and added everything again !

I don't really know why the app runs on emulator with no errors and throws this meaningless error when i try to generate a signed apk.

and i have no errors in my manifest file, androidmanifest 文件中没有错误

and i have all those three folders with image assets too !

在此处输入图像描述

Error in your manifest file studio not finding your app icon path

Change app icon to drawable folder

在此处输入图像描述

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