AndroidManifest.xml:8: error: No resource identifier found for attribute 'required' in package 'android'

856 views
Skip to first unread message

Franky

unread,
Nov 6, 2012, 5:08:10 AM11/6/12
to calabash...@googlegroups.com
Hi, when I try to do a calabash-android build xxx.apk, I have this problem, and I don't know what is happening exactly

AndroidManifest.xml:8: error: No resource identifier found for attribute 'required' in package 'android'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.3.2/bin/calabash-android-build.rb:21:in `block (2 levels) in calabash_build': Could not create dummy.apk (RuntimeError)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.3.2/bin/calabash-android-build.rb:12:in `chdir'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.3.2/bin/calabash-android-build.rb:12:in `block in calabash_build'
        from C:/Ruby193/lib/ruby/1.9.1/tmpdir.rb:83:in `mktmpdir'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.3.2/bin/calabash-android-build.rb:11:in `calabash_build'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.3.2/bin/calabash-android:42:in `<top (required)>'
        from C:/Ruby193/bin/calabash-android:23:in `load'
        from C:/Ruby193/bin/calabash-android:23:in `<main>'

Regards

Paweł Sławiński

unread,
Nov 8, 2012, 8:54:16 AM11/8/12
to calabash...@googlegroups.com
By any chance have you managed the problem?

Regards,
Pawel.

Kirit Chaudhary

unread,
Nov 8, 2012, 6:36:07 PM11/8/12
to calabash...@googlegroups.com
Hi,

I posted about this a couple of days ago and managed to find a fix last night. please look at the following post:


If you have any questions, feel free to contact me.

Cheers

Kirit

Dave Discoid

unread,
May 23, 2013, 6:33:52 AM5/23/13
to calabash...@googlegroups.com
The problem is caused by the calabash code not finding aapt tool in the android sdk.

I'm no ruby expert but the line below from calabash-android-build.rb is incorrect since aapt is nolonger present in this directory.

%Q{"#{ENV["ANDROID_HOME"]}/platform-tools/aapt

as a workaround I copied the aapt and mgwz.dll to that location and the world was a much happier place!

Regards

DD
Reply all
Reply to author
Forward
0 new messages