question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to use the library

See original GitHub issue

The library looks fantastic and I would like to use it. I added the following to the build.gradle

implementation 'com.github.skydoves:powermenu:2.0.3

on onCreate I have the following code -

         powerMenu = new PowerMenu.Builder(this)
                .addItem(new PowerMenuItem("Settings", false))
                .addItem(new PowerMenuItem("Travel", false))
                .addItem(new PowerMenuItem("Logout", false))
                .setAnimation(MenuAnimation.SHOWUP_TOP_LEFT) // Animation start point (TOP | LEFT)
                .setMenuRadius(0f)
                .setMenuShadow(0f)
                .setTextColor(Color.BLACK)
                .setSelectedTextColor(Color.WHITE)
                .setMenuColor(Color.WHITE)
                .setSelectedMenuColor(Color.BLACK)
                .setOnMenuItemClickListener(new OnMenuItemClickListener<PowerMenuItem>() {
                    @Override
                    public void onItemClick(int position, PowerMenuItem item) {
                        Toast.makeText(getBaseContext(), item.getTitle(), Toast.LENGTH_SHORT).show();
                    }
                })
                .build();

        mMenuButton = (Button)findViewById(R.id.floating_menu_context);
        mMenuButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                powerMenu.showAsDropDown(view);
            }
        });

I get the following error :

Error:(339, 26) error: cannot access LifecycleObserver class file for android.arch.lifecycle.LifecycleObserver not found

any help ? thanks !

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
NateZ7commented, Apr 10, 2018

OK, I managed to do what I needed with the CustomPowerMenu, thanks for all the help, great lib !

0reactions
skydovescommented, Apr 10, 2018

@NateZ7 Sorry. The only way is Customizing now. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot the Unable to Connect to the Library Error
If you can't connect to the in-game library, it is likely due to a network connection issue. This article provides information on how...
Read more >
[bug] Error when trying to use the library, although the code is ...
I would like to quickly pay attention and update the library. Expected Behavior. No response. Steps To Reproduce. No response. Link to Minimal ......
Read more >
Why do I get an error message when trying to access library ...
The problem is intermittent and only affects some users. Publishers are working to resolve this issue. Try one of the following to access...
Read more >
Opening a Library in Windows Explorer gives error that it is no ...
This article provides some steps for fixing the error which shows it is no longer working when opening a Library in Windows Explorer....
Read more >
Why do I keep getting an error message when I try to ... - Ask Us!
Sometimes saved information in a browser or an old bookmark can cause these errors. Try to clear your browser's cache and cookies or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found