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

The hierarchy of the type "MainActivity" is inconsistent #18

Open
laiis opened this issue Jan 12, 2017 · 1 comment
Open

The hierarchy of the type "MainActivity" is inconsistent #18

laiis opened this issue Jan 12, 2017 · 1 comment

Comments

@laiis
Copy link

laiis commented Jan 12, 2017

environment: eclipse neon.2 , android SDK 25

I have a testing project with 'gradle-eclipse-aar-plugin' and 'andmore'. When I add libraries like 'support-v4:25.0.0' , 'appcompat-v7:25.0.0' ,
then Eclipse IDE has an error for that: 'The hierarchy of the type "MainActivity" is inconsistent'.
The project structure is very simple , only one activity there, MainActivity, extends AppCompatActivity.
I reference these links:

  1. The hierarchy of the type MainActivity is inconsistent
  2. The hierarchy of the type activity is inconsistent when extending ActionBarActivity,
  3. If I use new “ V7 Appcompat library ”, do I still need “ V4 Support Library ” for a minimum SDK = 7?,

they all mention one thing is 'you have to remove the android v4 support library from the libs folder of your project,ensure that the library has added to your project and compile again.'.
so I add some statements in my build.gradle to exclude duplicate library like this:

// Write your dependencies
dependencies {
    // jar files
    //compile fileTree(dir: 'libs', include: '*.jar')

	compile "com.android.support:support-v4:25.0.0"
	        
    compile('com.android.support:appcompat-v7:25.0.0') {
        exclude module: 'support-v4'
    }
    
}

But !
There is nothing change for "The hierarchy of the type "MainActivity" is inconsistent" this Error message.
Can anybody help me? Thank you~

@ksoichiro
Copy link
Owner

Thank you for your report.
I'd like to reproduce the issue in my environment.
Do you have any sample project to confirm this issue?

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