Skip to content

weather app shows blank white screen #1

@shu8hamrajput

Description

@shu8hamrajput

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions