AS gradle

1, Eclipse project directly leads Android Studio project directory configuration:

android {
    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = [ 'src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
            jni.srcDirs = ['libs']
            jniLibs.srcDirs = ['libs']
        }

        // Move the tests to tests/java, tests/res, etc...
        instrumentTest.setRoot('tests' )

        // Move the build types to build-types/<type>
        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
        // This moves them out of them default location under src/<type>/... which would
        // conflict with src/ being used by the main source set.
        // Adding new build types or product flavors should be accompanied
        // by a similar customization.
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }
}


2,aar文件配置,在build.gradle中添加代码:
  //aar路径配置
    repositories {
        flatDir {
            dirs 'libss'
        }
    }

compile(name: 'mlibrary-debug', ext:'aar')

3. Android Studio configuration:
  a) Color configuration file: Darcula_.icls, copy the content of this file to the .icls file in the directory C:\Users\jxw3042\.AndroidStudioPreview2.0\config\colors.
  b) After decompressing config.zip, replace the folder C:\Users\jxw3042\.AndroidStudioPreview2.0\config\. config.zip

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326990956&siteId=291194637