Build error: undefined method `each' for "./svg/app_icon.svg":String

28 views
Skip to first unread message

Hari Krishna Dara

unread,
May 24, 2015, 2:15:40 PM5/24/15
to graz...@googlegroups.com
I tried to build using rake for the first time and got the below error:

** Execute generate_bitmaps
!svg_file!=./svg/app_icon.svg
rake aborted!
undefined method `each' for "./svg/app_icon.svg":String
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:148:in `uptodate?'
/Users/hdara/src/GrazeRSS/Rakefile:454:in `block (2 levels) in <top (required)>'
/Users/hdara/src/GrazeRSS/Rakefile:433:in `each'
/Users/hdara/src/GrazeRSS/Rakefile:433:in `block in <top (required)>'

What could be causing this issues? I am using Mac OS X 10.10.3 with bundled Java 1.8.0_40 and rake utility (0.9.6). Could this be a rake version issue? I explicitly installed latest rake gem and I still got the same error. What else should I check for?

Travis Tabbal

unread,
May 24, 2015, 5:19:52 PM5/24/15
to graz...@googlegroups.com

The current version doesn't use the rake tool. I just committed the output files to the repo instead. You can skip trying to generate the icons and just build the app in Eclipse. It might be possible in Android Studio as well, but I haven't tried it yet.

--
You received this message because you are subscribed to the Google Groups "GrazeRSS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grazerss+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hari Krishna Dara

unread,
May 24, 2015, 11:35:48 PM5/24/15
to graz...@googlegroups.com
Thank you! I am a newbie for Android development, so please bear with me. I have Eclipse with Android Studio installed and tried to import the project as an Android project and did a build. I got one compilation error due to WebSettings.setPluginEnabled(), but I temporarily changed it to WebSettings.setPluginState() and the build succeeded but I am not sure how to proceed further to create the apk. When I tried "Android Tools > Export Signed Application Package", I got 3 Android lint errors for resources. Could you give me some more information?


--
You received this message because you are subscribed to a topic in the Google Groups "GrazeRSS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/grazerss/RZ1jZTY5Qs0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to grazerss+u...@googlegroups.com.

Hari Krishna Dara

unread,
May 25, 2015, 2:42:39 PM5/25/15
to graz...@googlegroups.com
Would you be able to share your Eclipse project files? 


On Monday, May 25, 2015 at 9:05:48 AM UTC+5:30, Hari Krishna Dara wrote:
Thank you! I am a newbie for Android development, so please bear with me. I have Eclipse with Android Studio installed and tried to import the project as an Android project and did a build. I got one compilation error due to WebSettings.setPluginEnabled(), but I temporarily changed it to WebSettings.setPluginState() and the build succeeded but I am not sure how to proceed further to create the apk. When I tried "Android Tools > Export Signed Application Package", I got 3 Android lint errors for resources. Could you give me some more information?

On Mon, May 25, 2015 at 2:49 AM, Travis Tabbal <tra...@tabbal.net> wrote:

The current version doesn't use the rake tool. I just committed the output files to the repo instead. You can skip trying to generate the icons and just build the app in Eclipse. It might be possible in Android Studio as well, but I haven't tried it yet.

On May 24, 2015 12:15 PM, "Hari Krishna Dara" <hari...@gmail.com> wrote:
I tried to build using rake for the first time and got the below error:

** Execute generate_bitmaps
!svg_file!=./svg/app_icon.svg
rake aborted!
undefined method `each' for "./svg/app_icon.svg":String
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:148:in `uptodate?'
/Users/hdara/src/GrazeRSS/Rakefile:454:in `block (2 levels) in <top (required)>'
/Users/hdara/src/GrazeRSS/Rakefile:433:in `each'
/Users/hdara/src/GrazeRSS/Rakefile:433:in `block in <top (required)>'

What could be causing this issues? I am using Mac OS X 10.10.3 with bundled Java 1.8.0_40 and rake utility (0.9.6). Could this be a rake version issue? I explicitly installed latest rake gem and I still got the same error. What else should I check for?

--
You received this message because you are subscribed to the Google Groups "GrazeRSS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grazerss+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "GrazeRSS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/grazerss/RZ1jZTY5Qs0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to grazerss+unsubscribe@googlegroups.com.

Travis Tabbal

unread,
May 27, 2015, 11:29:05 AM5/27/15
to graz...@googlegroups.com
I could try it, but Eclipse hardcodes filesystem paths in those. That's why I haven't done so before. What path are you using for importing the project? It isn't the top level. In your tree, use this as the import directory path. It should be the "app" directory.

https://github.com/travistabbal/GrazeRSS/tree/master/app

Also note that the build target is 2.3. That's probably where the setPluginEnabled() method threw you off. If you target a newer version, some of the APIs have changed. I don't get any export errors in Eclipse, but export APK is the right command. You can also try using the execute button in Eclipse. It will create an unsigned package to load on to your device. However, you must remove the Market version before it will work as the keys won't match.



On Mon, May 25, 2015 at 12:42 PM, Hari Krishna Dara <hari...@gmail.com> wrote:
Would you be able to share your Eclipse project files? 


On Monday, May 25, 2015 at 9:05:48 AM UTC+5:30, Hari Krishna Dara wrote:
Thank you! I am a newbie for Android development, so please bear with me. I have Eclipse with Android Studio installed and tried to import the project as an Android project and did a build. I got one compilation error due to WebSettings.setPluginEnabled(), but I temporarily changed it to WebSettings.setPluginState() and the build succeeded but I am not sure how to proceed further to create the apk. When I tried "Android Tools > Export Signed Application Package", I got 3 Android lint errors for resources. Could you give me some more information?

On Mon, May 25, 2015 at 2:49 AM, Travis Tabbal <tra...@tabbal.net> wrote:

The current version doesn't use the rake tool. I just committed the output files to the repo instead. You can skip trying to generate the icons and just build the app in Eclipse. It might be possible in Android Studio as well, but I haven't tried it yet.

On May 24, 2015 12:15 PM, "Hari Krishna Dara" <hari...@gmail.com> wrote:
I tried to build using rake for the first time and got the below error:

** Execute generate_bitmaps
!svg_file!=./svg/app_icon.svg
rake aborted!
undefined method `each' for "./svg/app_icon.svg":String
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:148:in `uptodate?'
/Users/hdara/src/GrazeRSS/Rakefile:454:in `block (2 levels) in <top (required)>'
/Users/hdara/src/GrazeRSS/Rakefile:433:in `each'
/Users/hdara/src/GrazeRSS/Rakefile:433:in `block in <top (required)>'

What could be causing this issues? I am using Mac OS X 10.10.3 with bundled Java 1.8.0_40 and rake utility (0.9.6). Could this be a rake version issue? I explicitly installed latest rake gem and I still got the same error. What else should I check for?

--
You received this message because you are subscribed to the Google Groups "GrazeRSS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grazerss+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "GrazeRSS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/grazerss/RZ1jZTY5Qs0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to grazerss+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GrazeRSS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grazerss+u...@googlegroups.com.

Hari Krishna Dara

unread,
May 27, 2015, 2:19:32 PM5/27/15
to graz...@googlegroups.com
I already imported at the "app" directory only. I downloaded 2.3 and updated the eclipse project settings and a few lint fatal errors, so I disabled the lint checking and I was able to export a package, however installation is failing with the error "INSTALL_PARSE_FAILED_NO_CERTIFICATES". It looks like this could be due to a change in signing algorithm since JDK 1.7 (and I am using JDK 1.8 that came with Mac OS X Yosemite). I need to figure how to get past that error.

FYI, here are the lint errors, in case these are genuine and should be fixed:

Duplicate id @+id/feed_label, already defined earlier in this layout: configure_unread_widget.xml:145
@id/query is not a sibling in the same RelativeLayout: subscribe_feed.xml: 91
@id/query is not a sibling in the same RelativeLayout: subscribe_feed.xml: 103


Hari Krishna Dara

unread,
May 27, 2015, 2:40:13 PM5/27/15
to graz...@googlegroups.com
I got around the certificate problem with the help of this thread: http://stackoverflow.com/questions/15636396/failure-install-parse-failed-no-certificates-when-attempting-to-install-apk-to

I am now trying to figure out why I can't get it to login to Feedly, but I made a good amount of progress so far.
Reply all
Reply to author
Forward
0 new messages