could not encode class bundle

panagiotis merakos merakosp at gmail.com
Sun Jan 22 13:00:24 EST 2017


Hi all,

@bill I agree with you that sometimes the error messages are generic and
not quite helpful. There is an enhancement request in BugZilla about it.

@git.vb Thanks for the info. I did some investigation and this error is
probably caused if you have Android API 24 Build Tools installed, along
with jdk 1.7.x. So I suggest:

1. Either uninstall Android API 24 Build Tools (and install Android API 23
Build Tools) using the Android SDK Manager.
2. Or download jdk 1.8.x and change the path to the Mobile Preferences to
point to jdk 1.8.x

Best,
Panos
--

On Sun, Jan 22, 2017 at 5:39 PM, git.vb via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Than you Panos,
>
> To summary the problem:
> He give me version not supported 52.0 while..:
>
> 1)LC show me jdk path 1.7.0_80
> 2) CMD show me 1.7.0_80
> 3)JAVA_HOME point to 1.7.0_80
>
> So where he find this 52.0?  It must be at least 51.0.... Not 52.0
>
> In other hand I saw in LC website that LC can run even with 1.8.. So
> where is the catch?
>
> Thank you for your help
> ------------------------------------------------------------------------
> *From:* How To Use Livecode
>
> *Sent:* Sunday, January 22, 2017 at 4:42PM
>
> *To:* How To Use Livecode
> *Cc:* Panagiotis Merakos
>
> *Subject:* Re: could not encode class bundle
>
>
>
> > My guess is that this error is related to the Android SDK. Which version
> of
> > Android SDK Build Tools have you installed?
> >
> > To find the exact error, you can do the following:
> >
> > 1. Type in the msg box "edit the script of stack
> revsaveasandroidstandalone"
> > 2. In the script editor window that just opened, search for "Could not
> > encode class bundle" (should be around line 638)
> > 3. Add "answer the result" just before the "Could not encode class
> bundle"
> > line.
> > 4. Click apply to (temporarily) save this change
> > 5. Build an android standalone.
> >
> > What is the exact error that causes the failure?
> >
> > Best,
> > Panos
> > --
> >
> >
> > On Sun, Jan 22, 2017 at 4:21 PM, Mike Bonner via use-livecode <
> > use-livecode at lists.runrev.com> wrote:
> >
> >> Does the error message happen to mention aapt.exe?
> >>
> >> On Sun, Jan 22, 2017 at 7:37 AM, git.vb via use-livecode <
> >> use-livecode at lists.runrev.com> wrote:
> >>
> >>> Hi all,
> >>>
> >>> Why is so difficult to make a simple android app?
> >>>
> >>> Why I get every time this error? What I need? To download all source
> >>> code and debug it by myself? Why who did this message "could not encode
> >>> class bundle" was not thinking to set a more useful message?
> >>>
> >>> Current environment:
> >>> Win 7-64
> >>> Java 1.7_80 (32/64)
> >>> Android SDK full installed
> >>> Android device 4.1
> >>> Virtual devices.
> >>> Environment variables already set
> >>>
> >>> Thank you.
> >>>
> >>>  ps.: I'm not a newcomer in development.
> >>>
> >>> _______________________________________________
> >>> use-livecode mailing list
> >>> use-livecode at lists.runrev.com
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >>> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>>
> >> _______________________________________________
> >> use-livecode mailing list
> >> use-livecode at lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list