Cannot create new activity in android studio

后端 未结 9 1235
猫巷女王i
猫巷女王i 2021-01-02 09:48

I keep getting an IllegalStateException error in the event log while creating new activity in android studio:

11:27:15 InvalidReferenceException         


        
9条回答
  •  礼貌的吻别
    2021-01-02 10:04

    removing the build folder redirect code in the gradle file is a workaround.

    allprojects {
    
        //String osName = System.getProperty("os.name").toLowerCase();
        //if (osName.contains("windows")) {
        //    buildDir = "C:/tmp/${rootProject.name}/${project.name}"
        //}
        repositories {
            jcenter()
        }
    }
    

    Found it here https://github.com/udacity/ud851-Exercises/issues/67

提交回复
热议问题