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

适配新版本support库 #42

Open
ElegantWang opened this issue Sep 12, 2017 · 2 comments
Open

适配新版本support库 #42

ElegantWang opened this issue Sep 12, 2017 · 2 comments

Comments

@ElegantWang
Copy link

android.support.v7.app.ActionBarActivity类从support库v26.0.2中删除了
导致错误:

java.lang.NoClassDefFoundError: android.support.v7.app.ActionBarActivity
                                                                                   at xiaofei.library.hermes.util.TypeUtils$1.<init>(TypeUtils.java:51)
                                                                                   at xiaofei.library.hermes.util.TypeUtils.<clinit>(TypeUtils.java:48)
                                                                                   at xiaofei.library.hermes.util.TypeCenter.register(TypeCenter.java:94)
                                                                                   at xiaofei.library.hermes.Hermes.register(Hermes.java:71)
                                                                                   at xiaofei.library.hermeseventbus.HermesEventBus.init(HermesEventBus.java:122)
@harmeetsingh-work
Copy link
Contributor

Actually, this is issue in Hermes repo xiaofei.library.hermes.util.TypeUtils.java at line add(ActionBarActivity.class);

For temporarily solving this issue, I created a empty class android.support.v7.app.ActionBarActivity.java and extend to AppCompatActivity and my app starting running again :)

package android.support.v7.app;

/**
 * Created by blackadmin on 07/10/17.
 */

public class ActionBarActivity extends AppCompatActivity {
}

Here I have created issue issue-13

@moonljt521
Copy link

还得写个空类放那里,有点恶......

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

3 participants