Skip to content

Instantly share code, notes, and snippets.

@MwBakker
Created May 6, 2019 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MwBakker/2cfc1c4e6e73ed74452166fff83a0251 to your computer and use it in GitHub Desktop.
Save MwBakker/2cfc1c4e6e73ed74452166fff83a0251 to your computer and use it in GitHub Desktop.
Executing tasks: [clean, :app:assembleDebug]
> Task :clean UP-TO-DATE
> Task :app:clean
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript
> Task :app:checkDebugManifest
> Task :app:generateDebugBuildConfig
> Task :app:prepareLintJar UP-TO-DATE
> Task :app:generateDebugSources
> Task :app:dataBindingExportBuildInfoDebug
> Task :app:dataBindingExportFeaturePackageIdsDebug
> Task :app:dataBindingMergeDependencyArtifactsDebug
> Task :app:generateDebugResValues
> Task :app:generateDebugResources
> Task :app:mergeDebugResources
> Task :app:transformDataBindingBaseClassLogWithDataBindingMergeGenClassesForDebug
> Task :app:dataBindingGenBaseClassesDebug
> Task :app:javaPreCompileDebug
> Task :app:mainApkListPersistenceDebug
> Task :app:createDebugCompatibleScreenManifests
> Task :app:processDebugManifest
> Task :app:processDebugResources
> Task :app:compileDebugJavaWithJavac
Gradle may disable incremental compilation as the following annotation processors are not incremental: room-compiler-2.1.0-alpha01.jar (androidx.room:room-compiler:2.1.0-alpha01), lifecycle-compiler-2.0.0.jar (androidx.lifecycle:lifecycle-compiler:2.0.0), databinding-compiler-3.3.1.jar (androidx.databinding:databinding-compiler:3.3.1).
Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental.
C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\java\com\mwb\digitalstorage\database\DAO.java:85: warning: com.mwb.digitalstorage.model.Component has some fields [img_path] which are not returned by the query. If they are not supposed to be read from the result, you can mark them with @Ignore annotation. You can suppress this warning by annotating the method with @SuppressWarnings(RoomWarnings.CURSOR_MISMATCH). Columns returned by the query: id, count, category_name, rack_id, component_category_id, name, code. Fields in com.mwb.digitalstorage.model.Component: id, rack_id, component_category_id, category_name, name, code, img_path, count.
LiveData<List<Component>> getRackComponents(long rackID);
^
C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\java\com\mwb\digitalstorage\database\DAO.java:96: warning: com.mwb.digitalstorage.model.Component has some fields [img_path] which are not returned by the query. If they are not supposed to be read from the result, you can mark them with @Ignore annotation. You can suppress this warning by annotating the method with @SuppressWarnings(RoomWarnings.CURSOR_MISMATCH). Columns returned by the query: id, count, category_name, rack_id, component_category_id, name, code. Fields in com.mwb.digitalstorage.model.Component: id, rack_id, component_category_id, category_name, name, code, img_path, count.
LiveData<List<Component>> getFilteredComponents(long rackID, long categoryID);
^
C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\java\com\mwb\digitalstorage\ComponentMenuActivity.java:110: warning: Application namespace for attribute app:customSrc will be ignored.
public static void loadImg(ImageView view, Bitmap imgBitmap)
^
warning: UIComponentCategory.color.get() is a boxed field but needs to be un-boxed to execute android:textColor. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap UIComponentCategory.color.get() with safeUnbox() to prevent the warning
file://C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\res\layout\component_category_item.xml Line:18
warning: UIComponentCategory.color.get() is a boxed field but needs to be un-boxed to execute android:textColor. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap UIComponentCategory.color.get() with safeUnbox() to prevent the warning
file://C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\res\layout\component_category_item.xml Line:30
warning: Method references using '.' is deprecated. Instead of 'UIComponentCategory.onTextChanged', use 'UIComponentCategory::onTextChanged'
file://C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\res\layout\component_category_item.xml Line:40
warning: UIComponentCategory.color.get() is a boxed field but needs to be un-boxed to execute android:textColor. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap UIComponentCategory.color.get() with safeUnbox() to prevent the warning
file://C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\res\layout\component_category_item.xml Line:40
warning: Method references using '.' is deprecated. Instead of 'cmdHandler.editEntityTitle', use 'cmdHandler::editEntityTitle'
file://C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\res\layout\rack_item.xml Line:41
warning: View field img collides with a variable or import
file://C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\res\layout\img_view.xml Line:17
warning: Method references using '.' is deprecated. Instead of 'cmdHandler.editCompanyName', use 'cmdHandler::editCompanyName'
file://C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\res\layout\activity_storage_overview.xml Line:51
warning: Method references using '.' is deprecated. Instead of 'cmdHandler.editCompanyName', use 'cmdHandler::editCompanyName'
file://C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\res\layout\activity_storage_overview.xml Line:82
warning: Method references using '.' is deprecated. Instead of 'cmdHandler.onTextChanged', use 'cmdHandler::onTextChanged'
file://C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\res\layout\activity_search.xml Line:28
warning: Method references using '.' is deprecated. Instead of 'cmdHandler.editEntityTitle', use 'cmdHandler::editEntityTitle'
file://C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\res\layout\storage_item.xml Line:32
warning: Method references using '.' is deprecated. Instead of 'cmdHandler.editStorageLocation', use 'cmdHandler::editStorageLocation'
file://C:\Users\MwB\Documents\Android Studio Projects\DigitalStorage\app\src\main\res\layout\storage_item.xml Line:66
warning: UIComponentCategory.isEdit.get() is a boxed field but needs to be un-boxed to execute UIComponentCategory.isEdit.get() == true. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap UIComponentCategory.isEdit.get() with safeUnbox() to prevent the warning
warning: UIComponentCategory.isEdit.get() is a boxed field but needs to be un-boxed to execute UIComponentCategory.isEdit.get() == false. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap UIComponentCategory.isEdit.get() with safeUnbox() to prevent the warning
warning: vm.newCategory.get() is a boxed field but needs to be un-boxed to execute vm.newCategory.get() ? View.GONE : View.VISIBLE. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap vm.newCategory.get() with safeUnbox() to prevent the warning
warning: vm.newCategory.get() is a boxed field but needs to be un-boxed to execute vm.newCategory.get() ? View.VISIBLE : View.GONE. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap vm.newCategory.get() with safeUnbox() to prevent the warning
warning: UIRack.isEdit.get() is a boxed field but needs to be un-boxed to execute UIRack.isEdit.get() ? View.VISIBLE : View.GONE. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap UIRack.isEdit.get() with safeUnbox() to prevent the warning
warning: UIRack.isEdit.get() is a boxed field but needs to be un-boxed to execute UIRack.isEdit.get() ? View.GONE : View.VISIBLE. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap UIRack.isEdit.get() with safeUnbox() to prevent the warning
warning: UIComponent.isEdit.get() is a boxed field but needs to be un-boxed to execute UIComponent.isEdit.get() ? View.VISIBLE : View.GONE. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap UIComponent.isEdit.get() with safeUnbox() to prevent the warning
warning: vm.isEdit.get() is a boxed field but needs to be un-boxed to execute vm.isEdit.get() ? View.GONE : View.VISIBLE. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap vm.isEdit.get() with safeUnbox() to prevent the warning
warning: vm.editCompanyObs.get() is a boxed field but needs to be un-boxed to execute vm.editCompanyObs.get() ? View.VISIBLE : View.GONE. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap vm.editCompanyObs.get() with safeUnbox() to prevent the warning
warning: vm.editCompanyObs.get() is a boxed field but needs to be un-boxed to execute vm.editCompanyObs.get() ? View.GONE : View.VISIBLE. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap vm.editCompanyObs.get() with safeUnbox() to prevent the warning
warning: UIStorage.isEdit.get() is a boxed field but needs to be un-boxed to execute UIStorage.isEdit.get() ? @android:dimen/dp_200 : @android:dimen/dp_125. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap UIStorage.isEdit.get() with safeUnbox() to prevent the warning
warning: UIStorage.isEdit.get() is a boxed field but needs to be un-boxed to execute UIStorage.isEdit.get() ? View.GONE : View.VISIBLE. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap UIStorage.isEdit.get() with safeUnbox() to prevent the warning
warning: UIStorage.isEdit.get() is a boxed field but needs to be un-boxed to execute UIStorage.isEdit.get() ? View.VISIBLE : View.GONE. This may cause NPE so Data Binding will safely unbox it. You can change the expression and explicitly wrap UIStorage.isEdit.get() with safeUnbox() to prevent the warning
1 error
27 warnings
> Task :app:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output 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 13s
20 actionable tasks: 18 executed, 2 up-to-date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment