SecUSo/privacy-friendly-weather

F-Droid build failed

linsui opened this issue · 0 comments

> Task :app:lintVitalRelease FAILED
/home/vagrant/build/org.secuso.privacyfriendlyweather/app/src/main/java/org/secuso/privacyfriendlyweather/ui/RecycleList/CityWeatherAdapter.java:555: Error: When using `setHasFixedSize() in an RecyclerView, wrap_content cannot be used as a value for size in the scrolling direction. [InvalidSetHasFixedSize from recyclerview-1.2.1]
            recyclerView.setHasFixedSize(true);
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/vagrant/build/org.secuso.privacyfriendlyweather/app/src/main/java/org/secuso/privacyfriendlyweather/ui/RecycleList/CityWeatherAdapter.java:566: Error: When using `setHasFixedSize() in an RecyclerView, wrap_content cannot be used as a value for size in the scrolling direction. [InvalidSetHasFixedSize from recyclerview-1.2.1]
            recyclerView.setHasFixedSize(true);
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   Explanation for issues of type "InvalidSetHasFixedSize":
   When a RecyclerView uses setHasFixedSize(...) you cannot use wrap_content
   for  size in the scrolling direction.

   Vendor: Android Open Source Project (recyclerview-1.2.1)
   Identifier: recyclerview-1.2.1
   Feedback: https://issuetracker.google.com/issues/new?component=192731

/home/vagrant/build/org.secuso.privacyfriendlyweather/app/src/main/AndroidManifest.xml:184: Error: Remove androidx.work.WorkManagerInitializer from your AndroidManifest.xml when using on-demand initialization. [RemoveWorkManagerInitializer from work-runtime-2.7.1]
        <provider
        ^

   Explanation for issues of type "RemoveWorkManagerInitializer":
   If an android.app.Application implements
   androidx.work.Configuration.Provider,
   the default androidx.startup.InitializationProvider needs to be removed
   from the
   AndroidManifest.xml file.

   Vendor: Android Open Source Project (work-runtime-2.7.1)
   Identifier: work-runtime-2.7.1
   Feedback: https://issuetracker.google.com/issues/new?component=192731

3 errors, 0 warnings


FAILURE: Build failed with an exception.

Could you please take a look? Thanks!