Android-Maven-Plugin v3.4.0 cannot find drawable resources when building app

后端 未结 1 1885
执念已碎
执念已碎 2021-01-05 08:41

Recently I started mavenizing my android application. One of the obstacles on my way is following: During build maven plugin cannot find drawables which are used in layouts

相关标签:
1条回答
  • 2021-01-05 09:36

    Ok, I've managed to solve my problem. This was really stupid. There were problems with some 9 patch images which are corrupted. This resulted in build failure. It seems that eclipse android plugin accepts drawables which are marked as 9 patch image, but in fact they are not, and build can be completed ... As for maven android plugin situation is different. But still imho error messages I was getting were inapropriate - there made me focused not on real problem. I've lost a lot of time.. and I'm sure I would find a solution much faster if there weren't those error messages saying that "no resource found that matches given name". Those errors should be skipped by plugin.

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