Skip to content

MDC-101: Material Components (MDC) Basics (Flutter) #137

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

Closed
cjbyrne772 opened this issue Dec 13, 2018 · 2 comments
Closed

MDC-101: Material Components (MDC) Basics (Flutter) #137

cjbyrne772 opened this issue Dec 13, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@cjbyrne772
Copy link

Attempt to download and build MDC 101 Starter Project. 2 problems ( 1) is probably not important, 2) is a show stopper.

  1. Directions (item 4) says
    4. In the project panel on the left, delete the testing file ../test/widget_test.dart
    file is not found

  2. Project does not build. Cannot find mips64el-linux-android in the toolchain
    ==============================================================

When I follow instructions on https://codelabs.developers.google.com/codelabs/mdc-101-flutter/index.html?index=..%2F..index#2
and use the “Download Starter Project” option, Android Studio shows me this:
fig2
which indicates a problem:
Dart support is not enabled…
I click on ‘Enable Dart support’ that seems to fix the problem, but now I get:
fig1
So ‘Packages get’ has not been run. I run it by clicking on ‘Get dependencies’ and I get this:
fig4

So it looks good…...Let’s delete that test file
4. In the project panel on the left, delete the testing file ../test/widget_test.dart

….Can’t find widget_test.*

Attempt to build project:
Get the following error:

Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...

  • Error running Gradle:
    ProcessException: Process "C:\etc\prj\material-components-flutter-codelabs-101-starter\material-components-flutter-codelabs-101-starter\mdc_100_series\android\gradlew.bat" exited abnormally:
    Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

  • Where:
    Build file 'C:\etc\prj\material-components-flutter-codelabs-101-starter\material-components-flutter-codelabs-101-starter\mdc_100_series\android\build.gradle' line: 24

  • What went wrong:
    A problem occurred evaluating root project 'android'.

A problem occurred configuring project ':app'.
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

@willlarche willlarche added bug Something isn't working Document labels Dec 26, 2018
@willlarche
Copy link
Collaborator

willlarche commented Dec 26, 2018

Thank you! I've corrected the document to make deleting the testing file something you do if you see it. I'm not sure why some people do and others don't.

Can you upgrade your flutter (flutter upgrade) and try again? Also, did you call flutter create mdc_100_series?

@epool
Copy link
Contributor

epool commented Jan 3, 2019

I fixed it by upgrading the android gradle plugin(3.0.1 => 3.2.1) along with the gradle wrapper version(4.1 => 4.10.2).

Index: mdc_100_series/android/build.gradle
===================================================================
     dependencies {
-        classpath 'com.android.tools.build:gradle:3.0.1'
+        classpath 'com.android.tools.build:gradle:3.2.1'
     }
 }

 
Index: mdc_100_series/android/gradle/wrapper/gradle-wrapper.properties
===================================================================
-distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

willlarche added a commit that referenced this issue Mar 25, 2019
[101] Making AppBar something you add in 102.

[Model] Adding model from the start.

[103] Adding fonts.

[103] Supplemental files.

[101] Correcting supplemental files.

[101] Copy correction.

[101] Minor renaming.

[101] Update for Dart 2.

[101] Missing dependency.

[101] Dart 2.

[101] Dart 2.

[101] Dart 2.

[101] Dart 2.

[101] Correcting model.

[Meta] README file.

[Meta] Clarification.

[101] Copy correction.

[104] Updating data.

[101] Correcting widget class. (#23)

Add link to actual codelab in the README

[Meta] README correction.

[101] README specificity.

Add the slanted_menu.png to assets for 101 branch so its ready when needed. (#44)

[101] TODOs for starter code (#50)

[101] Added future TODOs to 101 starter

[101] Included lines to ignore .iml files and files in idea/ (#67)

[101] Remove 104 comments

[All] Icons for Android and iOS. (#69)

[101] Add .vscode/ to gitignore, stop tracking ignored files (#71)

Removes files that should not be tracked because they've been ignored by gitignore rules (but have yet to be removed from the repository itself). Also adds the .vscode folder to gitignore, for users who might use VSCode as their development environment.

[101] Removed legacy 'new' and 'const' from 101 starter codelab (#72)

[101] Restore legacy to data.dart and product.dart (#75)

[101] Update import for app.dart to stop type errors in future codelabs (#83)

Replace data.dart (#99)

[All] Adding back in filter functionality. (#112)

[106] Update TODO from "PrimaryColorOverride" to "AccentColorOverride" (#115)

* [106] Update TODO from "PrimaryColorOverride" to "AccentColorOverride"

* [106] Update TODO from "PrimaryColorOverride" to "AccentColorOverride"

[101] Starter code.

issue #134

[101] Updating pubspec.

Upgrade android gradle plugin and gradle versions. (#143)

Fixes #137
rami-a pushed a commit that referenced this issue Apr 24, 2019
[101] Making AppBar something you add in 102.

[Model] Adding model from the start.

[103] Adding fonts.

[103] Supplemental files.

[101] Correcting supplemental files.

[101] Copy correction.

[101] Minor renaming.

[101] Update for Dart 2.

[101] Missing dependency.

[101] Dart 2.

[101] Dart 2.

[101] Dart 2.

[101] Dart 2.

[101] Correcting model.

[Meta] README file.

[Meta] Clarification.

[101] Copy correction.

[104] Updating data.

[101] Correcting widget class. (#23)

Add link to actual codelab in the README

[Meta] README correction.

[101] README specificity.

Add the slanted_menu.png to assets for 101 branch so its ready when needed. (#44)

[101] TODOs for starter code (#50)

[101] Added future TODOs to 101 starter

[101] Included lines to ignore .iml files and files in idea/ (#67)

[101] Remove 104 comments

[All] Icons for Android and iOS. (#69)

[101] Add .vscode/ to gitignore, stop tracking ignored files (#71)

Removes files that should not be tracked because they've been ignored by gitignore rules (but have yet to be removed from the repository itself). Also adds the .vscode folder to gitignore, for users who might use VSCode as their development environment.

[101] Removed legacy 'new' and 'const' from 101 starter codelab (#72)

[101] Restore legacy to data.dart and product.dart (#75)

[101] Update import for app.dart to stop type errors in future codelabs (#83)

Replace data.dart (#99)

[All] Adding back in filter functionality. (#112)

[106] Update TODO from "PrimaryColorOverride" to "AccentColorOverride" (#115)

* [106] Update TODO from "PrimaryColorOverride" to "AccentColorOverride"

* [106] Update TODO from "PrimaryColorOverride" to "AccentColorOverride"

[101] Starter code.

issue #134

[101] Updating pubspec.

Upgrade android gradle plugin and gradle versions. (#143)

Fixes #137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants