DARC-e-V / 50ohm-pocket

GNU General Public License v3.0
9 stars 4 forks source link

Build ist nicht reproduzierbar: Compilerfehler. #48

Closed aknrdureegaesr closed 1 month ago

aknrdureegaesr commented 1 month ago

Ich würde dem Projekt gerne eine INSTALL.md spendieren. Ich habe es geschafft, flutter zu installieren. Wenn ich flutter build apk aufrufe, läuft die Geschichte aber in einen Compilierfehler.

Ich spekuliere, dass mein flutter von irgendwelchen Dependencies andere Versionen gezogen hat als die, die in den letzten Build gelaufen sind.

Hier die m.E. wichtigen Zeilen rausgeschnitten aus dem, was auf meiner Kommandozeile zu sehen war. Ich kann genauere Info liefern.

"Install Android SDK Platform 33 (revision: 3)" ready.                                                                            
Installing Android SDK Platform 33 in /home/andreas/Android/Sdk/platforms/android-33                                              
"Install Android SDK Platform 33 (revision: 3)" complete.                                                                         
"Install Android SDK Platform 33 (revision: 3)" finished.                                                                         
lib/screens/chapterSelection.dart:207:60: Error: The getter 'headline5' isn't defined for the class 'TextTheme'.                  
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/usr/local/flutter/packages/flutter/lib/src/material/text_
theme.dart').                                                                                                                     
Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline5'.                       
                        style: Theme.of(context).textTheme.headline5,                                                             
                                                           ^^^^^^^^^                                                              
lib/helpers/packagesListing.dart:89:58: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.                    
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/usr/local/flutter/packages/flutter/lib/src/material/text_
theme.dart').                                                                                                                     
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'.                       
                      style: Theme.of(context).textTheme.bodyText2!.copyWith(fontWeight: FontWeight.bold))),                      
                                                         ^^^^^^^^^                                                                
lib/helpers/packagesListing.dart:101:75: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.                   
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/usr/local/flutter/packages/flutter/lib/src/material/text_
theme.dart').                                                                                                                     
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'.                       
              child: Text(_bodyText(), style: Theme.of(context).textTheme.bodyText2),                                             
                                                                          ^^^^^^^^^                                               
lib/style/style.dart:11:21: Error: No named parameter with the name 'headline5'.                                                  
                    headline5: TextStyle(color: Colors.black, fontWeight: FontWeight.w500,)                                       
                    ^^^^^^^^^                                                                                                     
/usr/local/flutter/packages/flutter/lib/src/material/text_theme.dart:89:9: Context: Found this candidate, but the arguments don't 
match.                                                                                                                            
  const TextTheme({                                                                                                               
        ^^^^^^^^^                                                                                                                 
Target kernel_snapshot_program failed: Exception                                                                                  

FAILURE: Build failed with an exception.                                                                                          

* What went wrong:                                                                                                                
Execution failed for task ':app:compileFlutterBuildRelease'.

vy 73 de dj3ei

thehilde commented 1 month ago

Hi, genau da stand ich gestern auch. Ersetzte bodyText2 durch bodyMedium und headline5 durch headlineSmall. Dann sollte es gehen.

aknrdureegaesr commented 1 month ago

Hat geklappt. Es gab anschließend noch zwei andere Probleme, aber inzwischen läuft die App bei mir lokal auf meinem Smartphone. Danke, @thehilde 🌹!