flutter / website

Flutter documentation web site
https://docs.flutter.dev
Other
2.75k stars 3.17k forks source link

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

Open neiljaywarner opened 2 years ago

neiljaywarner commented 2 years ago

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

danagbemava-nc commented 2 years ago

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

neiljaywarner commented 2 years ago

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: @.***>

danagbemava-nc commented 2 years ago

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

neiljaywarner commented 2 years ago

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: @.***>

danagbemava-nc commented 2 years ago

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?

neiljaywarner commented 2 years ago

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: @.***>

danagbemava-nc commented 2 years ago

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

wangmir commented 1 year ago

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

neiljaywarner commented 1 year ago

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

wangmir commented 1 year ago

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