Maven android plugin error "constant expression required" -
i writing maven build scripts project has dependency android project apklib. when execute
mvn clean install
goal generate-sources
executes successfully. but, r.java
generated apklib project contains non-constant variables i.e. public static int
. so, causes error
constant expression required
during compile time. question can change default maven android plugin behaviour passes argument --non-constant-id
aapt tool. or can suggest other solution well.
details of build configuration:
android plugin version: 3.6.0 platform: 8 platform version: 2.2.1
the error causing, because resource ids used inside switch case. , switch case requires constants. so, changing switch cases inside apklib project if-else statements. please suggest if other solution.
Comments
Post a Comment