yuto-yuto / flutter_samples

36 stars 12 forks source link

Cannot run main #2

Open Tusshu opened 2 years ago

Tusshu commented 2 years ago

I get following errors

Screen Shot 2022-05-21 at 2 30 23 PM Screen Shot 2022-05-21 at 2 31 12 PM
yuto-yuto commented 2 years ago

@Tusshu I got the same error with Flutter 3. If it is Flutter 2, it should work. If I upgraded the dependencies, some errors have gone but there are still errors which come from the dependencies. I can't do anything for them.

Tusshu commented 2 years ago

Thanks for looking into it for me.

On Sun, May 22, 2022 at 2:30 AM Yuto @.***> wrote:

@Tusshu https://github.com/Tusshu I got the same error with Flutter 3. If it is Flutter 2, it should work. If I upgraded the dependencies, some errors have gone but there are still errors which come from the dependencies. I can't do anything for them.

— Reply to this email directly, view it on GitHub https://github.com/yuto-yuto/flutter_samples/issues/2#issuecomment-1133829000, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4AJMFMBW4BT3SPK6Q2LB3VLHIA3ANCNFSM5WSFRXKQ . You are receiving this because you were mentioned.Message ID: @.***>

yuto-yuto commented 2 years ago

@Tusshu I'm sorry I didn't upgraded all the dependencies. fl_chart and googleapi was not updated then.

I got the following error and it looks what I can fix. I will update if I fix it.

D8: Cannot fit requested classes in a single dex file (# methods: 65610 > 65536)
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
The number of method references in a .dex file cannot exceed 64K.
Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html
yuto-yuto commented 2 years ago

@Tusshu I fixed the problem and the app at least started up on my environment. Would you please try it again?

Tusshu commented 2 years ago

I will try and let you know. Thanks

Tushar

On Sun, May 29, 2022 at 8:25 AM Yuto @.***> wrote:

@Tusshu https://github.com/Tusshu I fixed the problem and it works at least on my environment. Would you please try it again?

— Reply to this email directly, view it on GitHub https://github.com/yuto-yuto/flutter_samples/issues/2#issuecomment-1140438776, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4AJMEFHBG5HCBTS3QASBDVMNO3RANCNFSM5WSFRXKQ . You are receiving this because you were mentioned.Message ID: @.***>