Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating to AndroidX #15

Open
Duna opened this issue Sep 15, 2019 · 7 comments
Open

Migrating to AndroidX #15

Duna opened this issue Sep 15, 2019 · 7 comments

Comments

@Duna
Copy link

Duna commented Sep 15, 2019

Error inflating class com.tbuonomo.morphbottomnavigation.MorphBottomNavigationView in XML

@Duna
Copy link
Author

Duna commented Sep 15, 2019

Found the issue:
with implementation 'com.google.android.material:material:1.0.0-rc01' is working
with implementation 'com.google.android.material:material:1.1.0-alpha10' is not, since is the latest one

@Mr-Ramzan
Copy link

Download code and remove deprecated code with

val shapePathModel = ShapeAppearanceModel.builder().setTopEdge(topEdgeTreatment).build();

@SumukhaK
Copy link

@Mr-Ramzan thanks for the response. I came across another issue :

'setter for isShadowEnabled: Boolean' is deprecated. Deprecated in Java > Task :morph-bottom-navigation:prepareLintJar UP-TO-DATE > Task :morph-bottom-navigation:generateDebugSources > Task :morph-bottom-navigation:javaPreCompileDebug > Task :morph-bottom-navigation:compileDebugJavaWithJavac > Task :morph-bottom-navigation:extractDebugAnnotations > Task :morph-bottom-navigation:mergeDebugConsumerProguardFiles UP-TO-DATE > Task :morph-bottom-navigation:mergeDebugShaders > Task :morph-bottom-navigation:compileDebugShaders > Task :morph-bottom-navigation:generateDebugAssets > Task :morph-bottom-navigation:packageDebugAssets > Task :morph-bottom-navigation:packageDebugRenderscript NO-SOURCE > Task :morph-bottom-navigation:prepareLintJarForPublish UP-TO-DATE > Task :morph-bottom-navigation:processDebugJavaRes NO-SOURCE > Task :morph-bottom-navigation:transformResourcesWithMergeJavaResForDebug > Task :morph-bottom-navigation:transformClassesAndResourcesWithSyncLibJarsForDebug > Task :morph-bottom-navigation:mergeDebugJniLibFolders > Task :morph-bottom-navigation:transformNativeLibsWithMergeJniLibsForDebug > Task :morph-bottom-navigation:transformNativeLibsWithSyncJniLibsForDebug > Task :morph-bottom-navigation:bundleDebugAar > Task :morph-bottom-navigation:compileDebugSources > Task :morph-bottom-navigation:assembleDebug > Task :morph-bottom-navigation:bundleLibCompileDebug > Task :morph-bottom-navigation-sample:preBuild UP-TO-DATE > Task :morph-bottom-navigation-sample:preDebugBuild > Task :morph-bottom-navigation-sample:compileDebugAidl NO-SOURCE > Task :morph-bottom-navigation-sample:compileDebugRenderscript NO-SOURCE > Task :morph-bottom-navigation-sample:checkDebugManifest > Task :morph-bottom-navigation-sample:generateDebugBuildConfig > Task :morph-bottom-navigation-sample:mainApkListPersistenceDebug > Task :morph-bottom-navigation-sample:generateDebugResValues > Task :morph-bottom-navigation-sample:generateDebugResources > Task :morph-bottom-navigation-sample:mergeDebugResources > Task :morph-bottom-navigation-sample:createDebugCompatibleScreenManifests > Task :morph-bottom-navigation-sample:processDebugManifest > Task :morph-bottom-navigation-sample:processDebugResources > Task :morph-bottom-navigation-sample:compileDebugKotlin > Task :morph-bottom-navigation-sample:prepareLintJar UP-TO-DATE > Task :morph-bottom-navigation-sample:generateDebugSources > Task :morph-bottom-navigation-sample:javaPreCompileDebug > Task :morph-bottom-navigation-sample:compileDebugJavaWithJavac > Task :morph-bottom-navigation-sample:compileDebugSources > Task :morph-bottom-navigation-sample:mergeDebugShaders > Task :morph-bottom-navigation-sample:compileDebugShaders > Task :morph-bottom-navigation-sample:generateDebugAssets > Task :morph-bottom-navigation-sample:mergeDebugAssets > Task :morph-bottom-navigation-sample:validateSigningDebug > Task :morph-bottom-navigation-sample:signingConfigWriterDebug > Task :morph-bottom-navigation:bundleLibRuntimeDebug > Task :morph-bottom-navigation-sample:checkDebugDuplicateClasses > Task :morph-bottom-navigation-sample:transformClassesWithDexBuilderForDebug > Task :morph-bottom-navigation-sample:transformDexArchiveWithExternalLibsDexMergerForDebug > Task :morph-bottom-navigation-sample:transformDexArchiveWithDexMergerForDebug > Task :morph-bottom-navigation:bundleLibResDebug > Task :morph-bottom-navigation:transformNativeLibsWithIntermediateJniLibsForDebug > Task :morph-bottom-navigation-sample:mergeDebugJniLibFolders > Task :morph-bottom-navigation-sample:transformNativeLibsWithMergeJniLibsForDebug > Task :morph-bottom-navigation-sample:processDebugJavaRes NO-SOURCE > Task :morph-bottom-navigation-sample:transformResourcesWithMergeJavaResForDebug > Task :morph-bottom-navigation-sample:packageDebug > Task :morph-bottom-navigation-sample:assembleDebug Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD SUCCESSFUL in 33s 55 actionable tasks: 50 executed, 5 up-to-date  

Do you know how to fix this ?

@Mr-Ramzan
Copy link

image

https://developer.android.com/reference/com/google/android/material/shape/MaterialShapeDrawable#shadow_compat_mode_always

That was deprecated I was in a hurry but cannot have help from Google Samples For Material Bottom Bar.
I switched to using space tab bar library then extract that animation code and vector to achieve something like this lib

image

But in future, I'll come back to using this library by tweaking a bit if I get any spare time
Till then consider using spaceTabbar like libs or read official docs to resolve deprecation issues

By the way, I resolved this issue but even that, it did not work. code i resolved is not available

@ayushmaniac
Copy link

ayushmaniac commented May 30, 2020

@Mr-Ramzan are you getting shadows using this? is this a different library "space tab bar" if it is, please provide link

@Mr-Ramzan
Copy link

@ayushmaniac
Copy link

@Mr-Ramzan were you able to get the shadow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants