Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Detail on how to setup workspace? #85

Closed
mamatagelanee07 opened this issue Mar 23, 2019 · 18 comments
Closed

More Detail on how to setup workspace? #85

mamatagelanee07 opened this issue Mar 23, 2019 · 18 comments

Comments

@mamatagelanee07
Copy link

I am trying to set up a workspace, and getting few errors. Do any specific steps we need to set up before running the flutter project.

Note: Flutter is already installed and running fine with other applications.

Screenshot 2019-03-23 at 12 34 11

@jogboms
Copy link
Owner

jogboms commented Mar 31, 2019

Hello @mamatagelanee07

I attached vscode launch scripts. If you want to do this on the CMD, you would need to specify the --flavor. They are two flavors, dev and prod.

flutter run -t lib/main_dev.dart --flavor dev

There are also make scripts if you wish to just build.

@jogboms jogboms closed this as completed Mar 31, 2019
@jogboms jogboms pinned this issue Apr 12, 2019
@flutter-painter
Copy link

Hi @jogboms,

Sorry again,
I updated config with signingConfig signingConfigs.debug

But i still a Gradle error :
Execution failed for task ':app:processDevDebugGoogleServices'.

File google-services.json is missing. The Google Services Plugin cannot function without it.

@jogboms
Copy link
Owner

jogboms commented Apr 15, 2019

@926 You need one of those. You can set up on Firebase.

@flutter-painter
Copy link

Thank you again for quick reply.

  1. Set-up dedicated firebase app.
  2. Configured google-services.json in the android/app
  3. Edited the build files accordingly
  4. run flutter run -t lib/main_dev.dart --flavor dev

=>

Execution failed for task ':app:processDevDebugGoogleServices'.

No matching client found for package name 'io.github.jogboms.tailormade.dev'

@ffoliveira
Copy link

ffoliveira commented Apr 18, 2019

Thank you again for quick reply.

  1. Set-up dedicated firebase app.
  2. Configured google-services.json in the android/app
  3. Edited the build files accordingly
  4. run flutter run -t lib/main_dev.dart --flavor dev

=>

Execution failed for task ':app:processDevDebugGoogleServices'.

No matching client found for package name 'io.github.jogboms.tailormade.dev'

You have to create a firebase application that matchs the application ID with your application. I think it is in the build.gradle file at /android/app folder. in the applicationId field.

I did it and compiled without that error.

@jogboms
Copy link
Owner

jogboms commented Apr 19, 2019

@ffoliveira thanks for the added info.

@926 Since flavors are being used, it means you have to create apps on FireBase for both io.github.jogboms.tailormade and io.github.jogboms.tailormade.dev with the former being for if you are building using the prod flavor and the latter being the dev flavor.

@jogboms jogboms reopened this Apr 19, 2019
@ffoliveira
Copy link

ffoliveira commented Apr 23, 2019

There is some help in how to configure Firebase at google console ?

I have an error when running. It might be how the Firebase application need to be configured. I didn't find how and what to configure at firebase console. Any ideas ?

After the Splash screen it gives the following error in console:

E/flutter ( 5243): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: type '() => void' is not a subtype of type '(dynamic) => dynamic' E/flutter ( 5243): #0 _invokeErrorHandler (dart:async/async_error.dart:16:23)
it appears that dart is trying to get some data from firebase and returns void. (not sure about that)

@flutter-painter
Copy link

@jogboms did you add firebase at the beginning of the project or is it possible to trace an early commit without it to avoid the errors it yields ?

@jogboms
Copy link
Owner

jogboms commented Apr 25, 2019

Thinking about it again, i think the best way to do this would be to share my dev configuration for firebase together with the repo.

@flutter-painter
Copy link

Whatever works

@ffoliveira
Copy link

In another flutter app, that used Firebase, I had to insert some data into a collection manually before it started to work.

jogboms added a commit that referenced this issue Apr 27, 2019
@jogboms
Copy link
Owner

jogboms commented Apr 27, 2019

The configurations have been added to the develop branch.

@jogboms jogboms closed this as completed Apr 27, 2019
@ffoliveira
Copy link

@jogboms did you add firebase at the beginning of the project or is it possible to trace an early commit without it to avoid the errors it yields ?

The error that happened with my copy was just this issue:

dart-lang/sdk#35812

@jogboms
Copy link
Owner

jogboms commented May 1, 2019

Interesting @mamatagelanee07 if i knew how the stacktrace looks like, maybe i can help.

@yeshwanthvshenoy
Copy link

@jogboms Went through above errors and solutions but on current master, getting this error

Compiler message: lib/rebloc/app_state.dart:11:6: Error: Error when reading 'lib/rebloc/app_state.g.dart': No such file or directory part 'app_state.g.dart';

not only this one but many others similar to this. Almost every model file. Any ideas what is missing?

@tobyokeke
Copy link
Collaborator

Try running the command below.

flutter packages pub run build_runner build --delete-conflicting-outputs

@yeshwanthvshenoy
Copy link

yeshwanthvshenoy commented Nov 27, 2019

@jogboms Thanks for the quick response. Works now!

@orimdominic
Copy link

Could this be added to the README or a a separate markdown file be created for this?

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

No branches or pull requests

7 participants