AniketSindhu / My_Paper_Crypto_Wallet

Crypto paper cold wallet made with flutter
1 stars 0 forks source link

Build fail with errors "Error: No named parameter with the name" #1

Open emanuelb opened 3 years ago

emanuelb commented 3 years ago

Building apk with flutter build apk result in errors:

../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/velocity_x-2.0.0-nullsafety.1/lib/src/extensions/context_ext.dart:174:36: Error: No named parameter with the name 'nullOk'.

      Actions.invoke(this, intent, nullOk: nullOk) as bool?;

                                   ^^^^^^

../sdk/flutter/packages/flutter/lib/src/widgets/actions.dart:898:18: Context: Found this candidate, but the arguments don't match.

  static Object? invoke<T extends Intent>(

                 ^^^^^^

../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/velocity_x-2.0.0-nullsafety.1/lib/src/flutter/theme.dart:27:9: Error: No named parameter with the name 'isMaterialAppTheme'.

        isMaterialAppTheme: isMaterialAppTheme,

        ^^^^^^^^^^^^^^^^^^

../sdk/flutter/packages/flutter/lib/src/material/theme.dart:40:9: Context: Found this candidate, but the arguments don't match.

  const Theme({

        ^^^^^
../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/velocity_x-2.0.0-nullsafety.1/lib/src/flutter/theme.dart:36:9: Error: No named parameter with the name 'isMaterialAppTheme'.

        isMaterialAppTheme: isMaterialAppTheme,

        ^^^^^^^^^^^^^^^^^^
../sdk/flutter/packages/flutter/lib/src/material/theme.dart:40:9: Context: Found this candidate, but the arguments don't match.

  const Theme({
        ^^^^^

../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/velocity_x-2.0.0-nullsafety.1/lib/src/flutter/theme.dart:47:9: Error: No named parameter with the name 'isMaterialAppTheme'.

        isMaterialAppTheme: isMaterialAppTheme,

        ^^^^^^^^^^^^^^^^^^

../sdk/flutter/packages/flutter/lib/src/material/theme.dart:40:9: Context: Found this candidate, but the arguments don't match.

  const Theme({

        ^^^^^

FAILURE: Build failed with an exception.

* Where:

Script '/home/appuser/app/sdk/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 991

* What went wrong:

Execution failed for task ':app:compileFlutterBuildRelease'.

> Process 'command '/home/appuser/app/sdk/flutter/bin/flutter'' finished with non-zero exit value 1

Used Containerfile to reproduce:

FROM frolvlad/alpine-glibc

RUN set -ex; \
    apk update; \
    apk add --no-cache \
        gradle \
        bash curl file git zip; \
    adduser -D appuser;

USER appuser

ENV ANDROID_SDK_ROOT="/home/appuser/app/sdk" \
    ANDROID_HOME="/home/appuser/app/sdk"

RUN set -ex; \
    ANDROID_SDK_LICENSES="${ANDROID_SDK_ROOT}/licenses"; \
    mkdir -p "${ANDROID_SDK_LICENSES}"; \
    printf "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > "${ANDROID_SDK_LICENSES}/android-sdk-license"; \
    cd /home/appuser/app/sdk/; \
    wget https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_2.0.1-stable.tar.xz; \
    tar xf flutter_linux_2.0.1-stable.tar.xz; \
    rm flutter_linux_2.0.1-stable.tar.xz

COPY --chown=appuser:root . /home/appuser/app/mypaperwallet/
WORKDIR /home/appuser/app/mypaperwallet/
RUN /home/appuser/app/sdk/flutter/bin/flutter build apk

Run podman build --rm -t mypaperwallet_build_apk . will result in above errors.

emanuelb commented 3 years ago

Building with older flutter 1.22.5 or 1.22.6 result in Error:

Because my_paper_wallet depends on cupertino_icons >=1.0.1 which requires SDK version >=2.12.0-0 <3.0.0, version solving failed.
Running "flutter pub get" in My_Paper_Crypto_Wallet...                  
pub get failed (1; Because my_paper_wallet depends on cupertino_icons >=1.0.1 which requires SDK version >=2.12.0-0 <3.0.0,
version solving failed.)

Building with flutter 1.27.0-8.0.pre-dev result in above error in previous comment including this text "doesn't implement a plugin interface" all in red:

Plugin `url_launcher_linux` doesn't implement a plugin interface, nor sets a default implementation in pubspec.yaml.

To set a default implementation, use:                                   
flutter:                                                                
  plugin:                                                               
    platforms:                                                          
      linux:                                                            
        default_package: <plugin-implementation>                        

To implement an interface, use:                                         
flutter:                                                                
  plugin:                                                               
    implements: <plugin-interface>                                      

Plugin `url_launcher_macos` doesn't implement a plugin interface, nor sets a default implementation in pubspec.yaml.

To set a default implementation, use:                                   
flutter:                                                                
  plugin:                                                               
    platforms:                                                          
      macos:                                                            
        default_package: <plugin-implementation>                        

To implement an interface, use:                                         
flutter:                                                                
  plugin:                                                               
    implements: <plugin-interface>                                      

Plugin `url_launcher_windows` doesn't implement a plugin interface, nor sets a default implementation in pubspec.yaml.

To set a default implementation, use:                                   
flutter:                                                                
  plugin:                                                               
    platforms:                                                          
      windows:                                                          
        default_package: <plugin-implementation>                        

To implement an interface, use:                                         
flutter:                                                                
  plugin:                                                               
    implements: <plugin-interface>                                      

../../sdk/flutter127/flutter/.pub-cache/hosted/pub.dartlang.org/velocity_x-2.0.0-nullsafety.1/lib/src/extensions/context_ext.dart:174:36: Error: No named parameter with the name 'nullOk'.
      Actions.invoke(this, intent, nullOk: nullOk) as bool?;            
                                   ^^^^^^                               
../../sdk/flutter127/flutter/packages/flutter/lib/src/widgets/actions.dart:899:18: Context: Found this candidate, but the arguments don't match.
  static Object? invoke<T extends Intent>(                              
                 ^^^^^^                                                 
../../sdk/flutter127/flutter/.pub-cache/hosted/pub.dartlang.org/velocity_x-2.0.0-nullsafety.1/lib/src/flutter/theme.dart:27:9: Error: No named parameter with the name 'isMaterialAppTheme'.
        isMaterialAppTheme: isMaterialAppTheme,                         
        ^^^^^^^^^^^^^^^^^^                                              
../../sdk/flutter127/flutter/packages/flutter/lib/src/material/theme.dart:39:9: Context: Found this candidate, but the arguments don't match.
  const Theme({                                                         
        ^^^^^                                                           
../../sdk/flutter127/flutter/.pub-cache/hosted/pub.dartlang.org/velocity_x-2.0.0-nullsafety.1/lib/src/flutter/theme.dart:36:9: Error: No named parameter with the name 'isMaterialAppTheme'.
        isMaterialAppTheme: isMaterialAppTheme,                         
        ^^^^^^^^^^^^^^^^^^                                              
../../sdk/flutter127/flutter/packages/flutter/lib/src/material/theme.dart:39:9: Context: Found this candidate, but the arguments don't match.
  const Theme({                                                         
        ^^^^^                                                           
../../sdk/flutter127/flutter/.pub-cache/hosted/pub.dartlang.org/velocity_x-2.0.0-nullsafety.1/lib/src/flutter/theme.dart:47:9: Error: No named parameter with the name 'isMaterialAppTheme'.
        isMaterialAppTheme: isMaterialAppTheme,                         
        ^^^^^^^^^^^^^^^^^^                                              
../../sdk/flutter127/flutter/packages/flutter/lib/src/material/theme.dart:39:9: Context: Found this candidate, but the arguments don't match.
  const Theme({                                                         
        ^^^^^