我有一个应用程序的两个维度,然后调用绿色和蓝色.只有这两个维度,但无限数量的产品口味.这是我在gradle中设置它的方式
flavorDimensions "green", "blue"
productFlavors {
one {
applicationId "com.app.green.one"
versionCode 1
versionName "1.0.0.1";
flavorDimension = "green"
}
two {
applicationId "com.app.blue.two"
versionCode 6
versionName "1.0.1";
flavorDimension = "blue"
}
}
Run Code Online (Sandbox Code Playgroud)
但是在我同步gradle之后,在构建变体选项卡中,我看到的是oneTwoDebug和oneTwoRelease,我应该看到greenOneDebug greenOneRelease,blueTwoDebug,blueTwoRelease
从理论上讲,我想将它扩展为类似的东西
one {
applicationId "com.app.green.one"
versionCode 1
versionName "1.0.0.1";
flavorDimension = "green"
}
two {
applicationId "com.app.blue.two"
versionCode 6
versionName "1.0.1";
flavorDimension = "blue"
}
three {
applicationId "com.app.green.three"
versionCode 1
versionName "1.0.0.1";
flavorDimension = "green"
}
four {
applicationId "com.app.blue.four"
versionCode 6
versionName "1.0.1";
flavorDimension = …
Run Code Online (Sandbox Code Playgroud) gradle android-studio build.gradle android-gradle-plugin android-productflavors
在Nexus One上运行的OpenGL代码在Nexus S上无法正常工作.纹理似乎不会渲染,而我只剩下纹理所在的黑色.
有人有任何想法吗?