website icon indicating copy to clipboard operation
website copied to clipboard

Fix launchTheme not defined with file-new project from Chipmunk on 'Adding a Flutter screen to an Android app' page

Open neiljaywarner opened this issue 3 years ago • 10 comments

Page URL

https://docs.flutter.dev/development/add-to-app/android/add-flutter-screen/

Page source

https://github.com/flutter/website/tree/main/src/development/add-to-app/android/add-flutter-screen.md

Describe the problem

Android resource linking failed
/Users/neil.warner/dev/SafetyButtonsDriver/app/build/intermediates/packaged_manifests/debug/AndroidManifest.xml:37: error: resource style/LaunchTheme (aka com.everbridge.safetybuttonsdriver:style/LaunchTheme) not found.
error: failed processing manifest.

Expected fix

copy/paste should not fail.

Additional context

No response

neiljaywarner avatar Jun 07 '22 23:06 neiljaywarner

Hi @neiljaywarner, how did you set up the project?

danagbemava-nc avatar Jun 08 '22 10:06 danagbemava-nc

File new project material 3 template The thing I'm concerned about is in the instructions

....sent from my phone

On Wed, Jun 8, 2022, 5:21 AM Daniel Agbemava @.***> wrote:

Hi @neiljaywarner https://github.com/neiljaywarner, how did you set up the project?

— Reply to this email directly, view it on GitHub https://github.com/flutter/website/issues/7242#issuecomment-1149735044, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXBGYPHJPFNIS3MRJWPG6LVOBX2FANCNFSM5YEUD4IQ . You are receiving this because you were mentioned.Message ID: @.***>

neiljaywarner avatar Jun 08 '22 16:06 neiljaywarner

Hi @neiljaywarner, what I meant was "how did you set up the flutter module?"

The instructions may need to be updated, but we need to know the steps that don't work for you so we can properly update them.

Thank you

danagbemava-nc avatar Jun 09 '22 12:06 danagbemava-nc

Oh thanks sorry I used command line. IntelliJ extension not currently working

....sent from my phone

On Thu, Jun 9, 2022, 7:41 AM Daniel Agbemava @.***> wrote:

Hi @neiljaywarner https://github.com/neiljaywarner, what I meant was "how did you set up the flutter module?"

The instructions may need to be updated, but we need to know the steps that don't work for you so we can properly update them.

Thank you

— Reply to this email directly, view it on GitHub https://github.com/flutter/website/issues/7242#issuecomment-1151070364, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXBGYKQB6LWCJ5HPVF4MPLVOHQ5XANCNFSM5YEUD4IQ . You are receiving this because you were mentioned.Message ID: @.***>

neiljaywarner avatar Jun 09 '22 14:06 neiljaywarner

Hi @neiljaywarner, did you use option A or option B to setup your project?

And did the project successfully compile before you moved on to https://docs.flutter.dev/development/add-to-app/android/add-flutter-screen?tab=custom-activity-launch-kotlin-tab?

danagbemava-nc avatar Jun 10 '22 12:06 danagbemava-nc

There are some other issues with the option a/option b part that i addresses in a separate github issue.

This one is referring to the one attribute android:theme= @.***/LaunchTheme"

in https://docs.flutter.dev/development/add-to-app/android/add-flutter-screen?tab=custom-activity-launch-kotlin-tab

It has a red squiggly and has to be removed by default or changed.

On Fri, Jun 10, 2022 at 7:45 AM Daniel Agbemava @.***> wrote:

Hi @neiljaywarner https://github.com/neiljaywarner, did you use option A https://docs.flutter.dev/development/add-to-app/android/project-setup#option-a---depend-on-the-android-archive-aar or option B https://docs.flutter.dev/development/add-to-app/android/project-setup#option-b---depend-on-the-modules-source-code to setup your project?

And did the project successfully compile before you moved on to https://docs.flutter.dev/development/add-to-app/android/add-flutter-screen?tab=custom-activity-launch-kotlin-tab ?

— Reply to this email directly, view it on GitHub https://github.com/flutter/website/issues/7242#issuecomment-1152321310, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXBGYP6XUDPJI3B6DYN6ALVOM2GHANCNFSM5YEUD4IQ . You are receiving this because you were mentioned.Message ID: @.***>

neiljaywarner avatar Jun 10 '22 23:06 neiljaywarner

Thanks for the info. We probably need to go through those samples to see if they're still valid.

danagbemava-nc avatar Jun 13 '22 12:06 danagbemava-nc

@neiljaywarner Did u solve this problem? I have similar problem when uploading aar libraries into maven repository.

wangmir avatar Oct 19 '22 14:10 wangmir

I haven't done anything with it in quite some time. Sorry about that

neiljaywarner avatar Oct 19 '22 15:10 neiljaywarner

@danagbemava-nc Hi, did u check this problem? I think new guide is not suitable now. And, it also has problem with others too.

wangmir avatar Oct 19 '22 15:10 wangmir