简体   繁体   中英

Android Eclipse to Android Studio ---> Project Structure

I converted my Eclipse project to Android studio by following the instructions here . In the documentation it says the structure should be updated but from what I am seeing it hasn't.

Expected structure should be:

-src
    -main
        -java
        -res

but it pretty much maintained it's old structure as:

-res
-src
    -my.package.com

I noticed this when I was trying to add a jniLibs folder to 'main', but couldn't find it.

Has anyone had this problem before? Is there a way to update the project structure? Thanks!!

Check your build.gradle file.

You may have a configuration like this, where you override the project structure.

sourceSets {
    main {
        java {
            srcDir 'src/java'
        }
        resources {
            srcDir 'src/resources'
        }
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM