max*_*max 3 android android-studio build-variant
我有一个 Application 类,我希望在每个构建变体中都不同,例如调试和发布。
这是我的地图:
app/
|
|----debug/
|----java\
|----com.example.App.class
|----res\
|----mipmap-hdpi
|----main/
|----java\
|----com.example.App.class
|----res\
|----mipmap-hdpi
Run Code Online (Sandbox Code Playgroud)
但在 android studio 中给我这个错误消息“在...中找到重复的类”,
但它在我的资源中没有显示任何错误。
我的问题是为什么 gradle 无法弄清楚应该在不同的构建变体中使用哪个类,但它可以决定在不同的构建变体中必须使用哪些资源。
| 归档时间: |
|
| 查看次数: |
1513 次 |
| 最近记录: |