Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

resource mipmap/launcher_icon not found #29

Closed
Rudloff opened this issue Mar 3, 2019 · 3 comments
Closed

resource mipmap/launcher_icon not found #29

Rudloff opened this issue Mar 3, 2019 · 3 comments

Comments

@Rudloff
Copy link

Rudloff commented Mar 3, 2019

Hello,

When building 1.0.0 with flutter 1.3.2, it fails with this error:

Execution failed for task ':app:processReleaseResources'.

> Android resource linking failed

  /home/pierre/www/fdroiddata/build/sterrenburg.github.flutterhole/build/app/intermediates/merged_manifests/release/AndroidManifest.xml:25: AAPT: error: resource mipmap/launcher_icon (aka sterrenburg.github.flutterhole:mipmap/launcher_icon) not found.



  error: failed processing manifest.
@sterrenb
Copy link
Owner

sterrenb commented Mar 4, 2019

Hi, in my own CI script on Codemagic, I run this Flutter package to generate the correct icons:

flutter packages pub run flutter_launcher_icons:main

Would you rather I commit the generated images to the repository, or do you want to run the generation on the Fdroid side?

@Rudloff
Copy link
Author

Rudloff commented Mar 4, 2019

I added that to our build recipe and now it builds correctly. Thanks for your help!

@Rudloff Rudloff closed this as completed Mar 4, 2019
@desktopukr
Copy link

Running Gradle task 'assembleDebug'... 304.1s
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk... 8.6s
E/AndroidRuntime(10733): FATAL EXCEPTION: main
E/AndroidRuntime(10733): at android.os.Looper.loop(Looper.java:299)
E/AndroidRuntime(10733): at android.app.ActivityThread.main(ActivityThread.java:8250)E/AndroidRuntime(10733): at java.lang.reflect.Method.invoke(Native Method)E/AndroidRuntime(10733): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)E/AndroidRuntime(10733): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
E/AndroidRuntime(10733): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.pnn.pos.MainActivity" on path: DexPathList[[zip file "/data/app/~~Fi1LoYac4OgsqsQun8xE_Q==/com.pnn.pos-CV_rGXXjYsQwX2NiFn0nQg==/base.apk"],nativeLibraryDirectories=[/data/app/~~Fi1LoYac4OgsqsQun8xE_Q==/com.pnn.pos-CV_rGXXjYsQwX2NiFn0nQg==/lib/arm64, /data/app/~~Fi1LoYac4OgsqsQun8xE_Q==/com.pnn.pos-CV_rGXXjYsQwX2NiFn0nQg==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
E/AndroidRuntime(10733): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
E/AndroidRuntime(10733): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime(10733): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime(10733): at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
E/AndroidRuntime(10733): at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:45)
E/AndroidRuntime(10733): at android.app.Instrumentation.newActivity(Instrumentation.java:1273)
E/AndroidRuntime(10733): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3652)
E/AndroidRuntime(10733): ... 12 more

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants