Incompatible Android Studio source structure and gradle error -
the android studio version using 0.5.3. created project ide. default file structure is:
-root -build.gradle -app/ -build.gradle -libs/ -src/ -build/ -gradle/
i changed root build.gradle file little bit. is, added android{} element it:
buildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:0.9.+' } } apply plugin: 'android' android { compilesdkversion 19 buildtoolsversion "19.0.1" defaultconfig { minsdkversion 9 targetsdkversion 19 } } allprojects { repositories { mavencentral() } }
however received following error:
/users/jackiee/androidstudioprojects/robotest/src/main/androidmanifest.xml (no such file or directory)
i confused. auto created project places source files under app/, why directory gradle looking missing app?
the modifications made root build.gradle file problem. if sees apply plugin: 'android
in build file, expects see android module in directory, projects aren't structured such there's android module @ root. specific error message you're seeing it's looking manifest file nonexistent android module , it's not seeing it.
remove apply plugin
statement , android
block root-level build file.
Comments
Post a Comment