Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Error while building for Android- Error code : 256
Started by leokarun Dec 26 2019 07:19 AM

12 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

leokarun

[GLOBAL: userInfoPane.html]
leokarun
  • Enthusiast

  • 48 posts
  • Corona SDK

I've been trying to make an android build of my game since morning but keep getting a build error, with error code - 256. 

 

This is what I get on the console :

 

FAILURE: Build failed with an exception.
 
* What went wrong:
Execution failed for task ':App:packageReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > File 'root/res/drawable-xxhdpi-v4/ic_maps_indicator_current_position_anim1.png' uses reserved file or directory name 'res'.
 
This has been happening only in case of Android, no problems for ios. I have tried building multiple projects and couldn't succeed with any. Could this be a problem at my end or is something wrong on Corona's server.
 
Thanks.  


[TOPIC: post.html]
#2

leokarun

[GLOBAL: userInfoPane.html]
leokarun
  • Enthusiast

  • 48 posts
  • Corona SDK

@Rob @vlads could you please have a look?



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,539 posts
  • Enterprise

Please go to the 64-bit Android forum, follow the instructions in the pinned post to increase your debugging level.

 

Capture your entire build log and use a service like pastebin.com to paste the log to and share the link back here.

 

Post your build.settings?
 

What version of Corona are you using?
 

What version of Java JDK do you have installed?

 

What platform are you trying to build on?

 

Rob



[TOPIC: post.html]
#4

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,307 posts
  • Corona SDK

Are you using the Tenjin plugin? Comment it out and see if it will build. 


  • leokarun likes this

[TOPIC: post.html]
#5

leokarun

[GLOBAL: userInfoPane.html]
leokarun
  • Enthusiast

  • 48 posts
  • Corona SDK

Yes tenjin seems to be the problem. I was able to build after removing tenjin from build.settings. The problem is only with 64 bit builds. 



[TOPIC: post.html]
#6

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,307 posts
  • Corona SDK

It appears to be a problem with one of the latest Tenjin updates. It was working fine with version 1.8.7 a few weeks back. I ended up using a native build with the latest version 1.9.3 and I seem to be ok. Hopefully Tenjin or Corona will fix it this so I can go back to simulator builds.



[TOPIC: post.html]
#7

david.ciaudo

[GLOBAL: userInfoPane.html]
david.ciaudo
  • Enthusiast

  • 61 posts
  • Corona SDK

Hi, I confirm that builds using tenjin plugin are failling. I really need to update my app, when do you think this will this be fixed?

 

Error message:

 

14:14:37.332  Execution failed for task ':App:packageReleaseBundle'.
14:14:37.332  > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
14:14:37.332     > File 'root/res/drawable-xxhdpi-v4/ic_maps_indicator_current_position_anim1.png' uses reserved file or directory name 'res'.


[TOPIC: post.html]
#8

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,006 posts
  • Corona Staff

Sorry for the hiccup. This should be fixed now.



[TOPIC: post.html]
#9

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 595 posts
  • Corona SDK

@vlads

 

I get the same error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':App:packageReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > File 'root/res/drawable-xxhdpi-v4/ic_maps_indicator_current_position_anim1.png' uses reserved file or directory name 'res'.

when trying to build an app in the simulator with an android plugin (hosted) i did in android studio.

I can build the app with the plugin in android studio, but it fails in the corona simulator.

 

Any idea why?

 

Thanks



[TOPIC: post.html]
#10

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,006 posts
  • Corona Staff

I just tried, it builds fine with 3565. Give it another try.

 

EDIT: If using android studio, you have to re-download the plugin.



[TOPIC: post.html]
#11

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 595 posts
  • Corona SDK

Sorry I guess I didn't describe my problem clear enough.

 

I am not using the tenjin plugin.

 

I created my own native plugin in android studio. It is just a very basic plugin and it builds fine in android studio.

I have the self-hosted plugin plan. So I built the plugin and put it on my server.

 

When I build an app with the plugin in the Corona Simulator I get the exact same error as the one people in this thread are seeing when building with the tenjin plugin. I am using 3565.

 

Any idea why?

 

Thanks



[TOPIC: post.html]
#12

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,006 posts
  • Corona Staff

Oh. Right. So previous native template included Corona.aar into the plugin jar. Please, migrate your plugin to latest template and rebuild it. You probably would just need to replace 3 build.gradle.kts files.

[TOPIC: post.html]
#13

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 595 posts
  • Corona SDK

I migrated to latest template and it works.

Thanks vlads




[topic_controls]
[/topic_controls]