Issue when migrating to Gradle Experimental 2.5 : no such method AndroidConfig

后端 未结 1 357
遇见更好的自我
遇见更好的自我 2021-01-14 04:30

I have just updated my Android Studio setup to 1.3 (latest stable as of 31st of August 2015) and I need to use the latest NDK integration. My previous Android Studio version

1条回答
  •  悲&欢浪女
    2021-01-14 04:55

    For the first part.

    BuildType, flavors... are outside the android block, but inside the model block.

    apply plugin: 'com.android.model.application' // experimental
    
    model {
        android {
             defaultConfig.with {
    
             }
         }
    
        android.ndk {
    
        }
    
        android.buildTypes {
                release {
    
                }
            }
        android.productFlavors {
    
        }
    }
    

    0 讨论(0)
提交回复
热议问题