FATAL EXCEPTION: java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$layout

后端 未结 5 1203
别那么骄傲
别那么骄傲 2020-12-08 05:28

I just migrated from eclipse to studio. I followed one blog to export project from eclipse to studio. The app working fine in lollipop and throwing the following error in pr

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-08 05:55

    As I can see the gradle file you have posted here is top level gradle file,which contains stuff that should not be there. Replace your top level gradle file contents like below :

    // Top-level build file where you can add configuration options common to all sub-projects/modules.
    buildscript {
        repositories {
            jcenter()
            mavenCentral()
            maven {
                url "http://dl.bintray.com/journeyapps/maven"
            }
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:1.3.0'
        }
    }
    
    allprojects {
        repositories {
            jcenter()
        }
    }
    

提交回复
热议问题