manojbhadane / holdy Goto Github PK
View Code? Open in Web Editor NEW💼 Lightweight, Easy to use container for any fragment
License: MIT License
💼 Lightweight, Easy to use container for any fragment
License: MIT License
Hello @manojbhadane
I want to go main activity at onResponse of server, from fragment, so how we go finish or destroy the fragment with holdy library, like we do with activity. please solve that issue it is urgent.
And please give functionality to change the color of text of toolbar
Thanks
Hello manoj
This library not work in appcompact, and also solve the issue of databinding, means user can use this library without use of databinding.
thanks
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/appcompat/app/AppCompatActivity;
at com.manojbhadane.holdy.Holdy.Builder(Holdy.java:24)
at com.royalways.pioneercranes.activity.MainActivity.onNavigationItemSelected(MainActivity.java:98)
at android.support.design.widget.NavigationView$1.onMenuItemSelected(NavigationView.java:170)
at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:840)
at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:158)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:991)
at android.support.design.internal.NavigationMenuPresenter$1.onClick(NavigationMenuPresenter.java:352)
at android.view.View.performClick(View.java:5675)
at android.view.View$PerformClick.run(View.java:22646)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6251)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1075)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.appcompat.app.AppCompatActivity" on path: DexPathList[[zip file "/data/app/com.royalways.pioneercranes-2/base.apk", zip file "/data/app/com.royalways.pioneercranes-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.royalways.pioneercranes-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.royalways.pioneercranes-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.royalways.pioneercranes-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.royalways.pioneercranes-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.royalways.pioneercranes-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.royalways.pioneercranes-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.royalways.pioneercranes-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.royalways.pioneercranes-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.royalways.pioneercranes-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.royalways.pioneercranes-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.royalways.pioneercranes-2/lib/arm, /system/lib, /vendor/lib, /system/vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.manojbhadane.holdy.Holdy.Builder(Holdy.java:24)
at com.royalways.pioneercranes.activity.MainActivity.onNavigationItemSelected(MainActivity.java:98)
at android.support.design.widget.NavigationView$1.onMenuItemSelected(NavigationView.java:170)
at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:840)
at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:158)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:991)
at android.support.design.internal.NavigationMenuPresenter$1.onClick(NavigationMenuPresenter.java:352)
at android.view.View.performClick(View.java:5675)
at android.view.View$PerformClick.run(View.java:22646)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6251)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1075)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
2019-05-03 09:59:29.628 8172-8172/com.royalways.pioneercranes E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.royalways.pioneercranes, PID: 8172
java.lang.NoSuchMethodError: No direct method (Landroidx/databinding/DataBindingComponent;Landroid/view/View;I)V in class Landroidx/databinding/ViewDataBinding; or its super classes (declaration of 'androidx.databinding.ViewDataBinding' appears in /data/app/com.royalways.pioneercranes-2/split_lib_dependencies_apk.apk)
at com.manojbhadane.holdy.databinding.ActivityHolderBinding.(ActivityHolderBinding.java:23)
at com.manojbhadane.holdy.databinding.ActivityHolderBindingImpl.(ActivityHolderBindingImpl.java:32)
at com.manojbhadane.holdy.databinding.ActivityHolderBindingImpl.(ActivityHolderBindingImpl.java:29)
at com.manojbhadane.holdy.DataBinderMapperImpl.getDataBinder(DataBinderMapperImpl.java:40)
at androidx.databinding.MergedDataBinderMapper.getDataBinder(MergedDataBinderMapper.java:74)
at androidx.databinding.DataBindingUtil.bind(DataBindingUtil.java:199)
at androidx.databinding.DataBindingUtil.bindToAddedViews(DataBindingUtil.java:327)
at androidx.databinding.DataBindingUtil.setContentView(DataBindingUtil.java:306)
at androidx.databinding.DataBindingUtil.setContentView(DataBindingUtil.java:284)
at com.manojbhadane.holdy.HolderActivity.onCreate(HolderActivity.java:40)
at android.app.Activity.performCreate(Activity.java:6666)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2789)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6251)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1075)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
This error come after update appcompact to androidx and update to databinding
you do this type of coding for databinding in mainActivity
ActivityMainBinding dataBinding = DataBindingUtil.setContentView(this, R.layout.activity_main);
but i don't do this type of coding
please solve that issue, or give some alternate
This error come please solve that issue. it is necessary.
ERROR: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0-beta01] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:5:5-23:19 to override.
please enhance this library androidx to appcompact, because some of feature not work in androidx, and do proper documentation in git.
with androidx these lines also mandatory to add in gradle.properties
android.enableJetifier=true
android.useAndroidX=true
Hello @manojbhadane
With New version of gradle and android studio, Holdy Activity not open, i made some changes please implement on your library
Please update these line in your project
update compile SDK version to android 29 in build.gradle (:holdy)
compileSdkVersion 29
defaultConfig {
minSdkVersion 16
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
add data binding in build.gradle (:holdy)
dataBinding{
enabled true
}
update gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-5.6.4-all.zip
update this line in your project level gradle
classpath 'com.android.tools.build:gradle:3.6.1'
Thanks.
Hello @manojbhadane
With New version of gradle and android studio, Holdy Activity not open, please look in to it.
new version of project level gradle
classpath 'com.android.tools.build:gradle:3.6.0'
This error is occur
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.manojbhadane.holdy.HolderActivity}: android.view.InflateException: Binary
XML file line #2: Binary XML file line #2: Error inflating class layout
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2984)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3119)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1839)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6864)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class layout
Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class layout
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.layout" on path: DexPathList[[zip file "/data/app/com.royalways.montecarloretail-mKwBqM81EE8c2Xtykt2N5A==/base.apk"],nativeLibraryDirectories=[/data/app/com.royalways.montecarloretail-mKwBqM81EE8c2Xtykt2N5A==/lib/arm, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.view.LayoutInflater.createView(LayoutInflater.java:610)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:707)
at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:68)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:724)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:792)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
at android.view.LayoutInflater.inflate(LayoutInflater.java:496)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)
at com.manojbhadane.holdy.HolderActivity.onCreate(HolderActivity.java:43)
at android.app.Activity.performCreate(Activity.java:7232)
at android.app.Activity.performCreate(Activity.java:7221)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2964)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3119)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1839)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6864)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.