flutter_in_action_source_code icon indicating copy to clipboard operation
flutter_in_action_source_code copied to clipboard

weather app shows blank white screen

Open shu8hamrajput opened this issue 4 years ago • 1 comments

I downloaded source code from github repo but when i ran flutter run it gave following error

[!] Your app isn't using AndroidX.
    To avoid potential build failures, you can quickly migrate your app by
    following the steps on https://goo.gl/CP92wY.
/home/user/.gradle/caches/transforms-1/files-1.1/core-1.1.0.aar/fb4a0e60f6d8460984da67233862df51/res/values/values.xml:7:5-70: AAPT: error: resource android:attr/fontVariationSettings not found.
                                                                        
/home/user/.gradle/caches/transforms-1/files-1.1/core-1.1.0.aar/fb4a0e60f6d8460984da67233862df51/res/values/values.xml:7:5-70: AAPT: error: resource android:attr/ttcIndex not found.
                                                                        
                                                                        
FAILURE: Build failed with an exception.                                
                                                                        
* What went wrong:                                                      
Execution failed for task ':app:processDebugResources'.                 
> Failed to process resources, see aapt output above for details.       
                                                                        
* Try:                                                                  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                                                                        
* Get more help at https://help.gradle.org                              
                                                                        
BUILD FAILED in 25s                                                     
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        27.7s
Exception: Gradle task assembleDebug failed with exit code 1

on searching internet i came to know that it can resolved by changing compilesdkversion in android/app/buld.gradle from 27 to 28 link

after doing above chnages though it ran but shows blank white screen on emulator.

shu8hamrajput avatar Jul 11 '20 07:07 shu8hamrajput

Hi @shu8hamrajput, I just tried the source code today, and it works fine on the latest flutter and Android Studio. Although, I did encounter the problem you were talking about as well, but that was from the source codes downloaded here: manning.com/books/flutter-in-action

This repo contains a more updated version.

Yugue avatar Dec 06 '20 21:12 Yugue