com.facebook.buck.android.aapt.MiniAapt$ResourceParseException: Invalid resource type '<public>' in 'TestBuck/res/values/public.xml'.


Solutions on the web

Solution icon of github
Invalid resource type '<public>' in 'TestBuck/res/values/public.xml'.

Solution icon of github
Invalid resource type '<public>' in '/res/values/public.xml'.

Stack trace

com.facebook.buck.android.aapt.MiniAapt$ResourceParseException: Invalid resource type '<public>' in 'TestBuck/res/values/public.xml'.
	at com.facebook.buck.android.aapt.MiniAapt.processValuesFile(MiniAapt.java:413)
	at com.facebook.buck.android.aapt.MiniAapt.processValues(MiniAapt.java:349)
	at com.facebook.buck.android.aapt.MiniAapt.collectResources(MiniAapt.java:272)
	at com.facebook.buck.android.aapt.MiniAapt.execute(MiniAapt.java:166)
	at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:63)
	at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:1151)
	at com.facebook.buck.rules.CachingBuildEngine.access$1000(CachingBuildEngine.java:109)
	at com.facebook.buck.rules.CachingBuildEngine$5$1.call(CachingBuildEngine.java:523)
	at com.facebook.buck.rules.CachingBuildEngine$5$1.call(CachingBuildEngine.java:512)
	at com.facebook.buck.util.concurrent.WeightedListeningExecutorService$1.apply(WeightedListeningExecutorService.java:65)
	at com.facebook.buck.util.concurrent.WeightedListeningExecutorService$1.apply(WeightedListeningExecutorService.java:61)
	at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)
	at com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)
	at com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)
	at com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.