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

Android oreo Action bar Activity not found #49

Open
raaviswami opened this issue Jan 24, 2018 · 7 comments
Open

Android oreo Action bar Activity not found #49

raaviswami opened this issue Jan 24, 2018 · 7 comments

Comments

@raaviswami
Copy link

Hello Team,

Recently i have updated my application to support android oreo , And we have changed support version to 26 and compile sdk version to 26.

At runtime we land up with issue from HermsEventBus , i.e ActionBarActivity def not found in TypeUtills.java

private static final HashSet<Class> CONTEXT_CLASSES = new HashSet>() {
{
add(Context.class);
add(ActionBarActivity.class);
add(Activity.class);
add(AppCompatActivity.class);
add(Application.class);
add(FragmentActivity.class);
add(IntentService.class);
add(Service.class);
}
};

Please let us know how to solve this problem , it seems they have removed ActionBarActivity from support libraries ,Previously it was deprecated.

Regards,
Anil Raavi.

@Lxingzhi
Copy link

Lxingzhi commented Feb 7, 2018

@raaviswami how todo

@raaviswami
Copy link
Author

@njzy63lys what do you mean ?

@Lxingzhi
Copy link

Lxingzhi commented Feb 7, 2018

@raaviswami do you find a solution?

@raaviswami
Copy link
Author

raaviswami commented Feb 7, 2018

@njzy63lys yes for now i am doing some hack in code ,

Create a package "android.support.v7.app" inside your app source code, Then
Create a ActionBarActivity extends AppCompatActivity inside created package

@Lxingzhi
Copy link

Lxingzhi commented Feb 7, 2018

@raaviswami THX. but i post have a question。could you help me 。 you have a QQ?

@raaviswami
Copy link
Author

package android.support.v7.app;

/** @deprecated */
@deprecated
public class ActionBarActivity extends AppCompatActivity {
public ActionBarActivity() {
}
}

And create a package in your project with this name , android.support.v7.app

@Lxingzhi
Copy link

Lxingzhi commented Feb 7, 2018

@raaviswami nb mogul

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

2 participants