RE: ERROR: Android: Could not encode class bundle

2016-12-20 Thread Paul Richards
Hi Dan, 

I had the same issue http://forums.livecode.com/viewtopic.php?f=53&t=28530  . 
Panos pointed me in the right direction as I needed to update
my Android Buildtools to a later version  

Paul 

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
Dan Friedman
Sent: 19 December 2016 23:37
To: use-livecode@lists.runrev.com
Subject: ERROR: Android: Could not encode class bundle

Anyone know where to look to resolve this error when building a standalone for 
Android:

“There was an error while saving the standalone application could not encode 
class bundle”

I’ve built many Android apps in the past without a problem.  Recently updated 
to OSX 10.12.1, and LC 8.1.1.  I’ve downloaded and run the latest version of 
Android Studio (2.2.3) and installed all updates to both Java and Android.  
I’ve set the signing of the standalone to “Sign for development only”.   
Whenever I build a standalone, I get a "could not encode class bundle” error.

ANY thoughts would be appreciated!

-Dan
___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: ERROR: Android: Could not encode class bundle

2016-12-19 Thread Dan Friedman
Panos,

After posting the result, I did a little research and found that "Unsupported 
major.minor version 52.0” refers to Java 1.7.  Turns out that you have to have 
Java 1.8.  Seems that Android Studio is pointing to the old version (1.7).  So, 
I manually removed 1.6 and downloaded and installed 1.8.  Now it’s building 
without error.

Thanks for the advice… it got me on the right track.  Hope this helps the next 
guy!

-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: ERROR: Android: Could not encode class bundle

2016-12-19 Thread Dan Friedman
Panos,

Ok… here’s what the result was:

Exception in thread "main" java.lang.UnsupportedClassVersionError: 
com/android/dx/command/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

What do you think?

Thanks!!!
-Dan


> Hi Dan,
> 
> I suggest you add a
> "answer the result "
> 
> before
> 
> throw "could not encode class bundle"
> 
> in revSaveAsAndroidStandalone script
> 
> Then try again to create an Android standalone, and post here the full
> error. Hopefully this will be more descriptive.
> 
> Best,
> Panos.


>> 
>> Anyone know where to look to resolve this error when building a standalone 
>> for Android:
>> 
>> “There was an error while saving the standalone application could not encode 
>> class bundle”
>> 
>> I’ve built many Android apps in the past without a problem.  Recently 
>> updated to OSX 10.12.1, and LC 8.1.1.  I’ve downloaded and run the latest 
>> version of Android Studio (2.2.3) and installed all updates to both Java and 
>> Android.  I’ve set the signing of the standalone to “Sign for development 
>> only”.   Whenever I build a standalone, I get a "could not encode class 
>> bundle” error.
>> 
>> ANY thoughts would be appreciated!
>> 
>> -Dan


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: ERROR: Android: Could not encode class bundle

2016-12-19 Thread panagiotis merakos
Hi Dan,

I suggest you add a
"answer the result "

before

throw "could not encode class bundle"

in revSaveAsAndroidStandalone script

Then try again to create an Android standalone, and post here the full
error. Hopefully this will be more descriptive.

Best,
Panos.

On 19 Dec 2016 23:37, "Dan Friedman"  wrote:

> Anyone know where to look to resolve this error when building a standalone
> for Android:
>
> “There was an error while saving the standalone application could not
> encode class bundle”
>
> I’ve built many Android apps in the past without a problem.  Recently
> updated to OSX 10.12.1, and LC 8.1.1.  I’ve downloaded and run the latest
> version of Android Studio (2.2.3) and installed all updates to both Java
> and Android.  I’ve set the signing of the standalone to “Sign for
> development only”.   Whenever I build a standalone, I get a "could not
> encode class bundle” error.
>
> ANY thoughts would be appreciated!
>
> -Dan
> ___
> use-livecode mailing list
> use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

ERROR: Android: Could not encode class bundle

2016-12-19 Thread Dan Friedman
Anyone know where to look to resolve this error when building a standalone for 
Android:

“There was an error while saving the standalone application could not encode 
class bundle”

I’ve built many Android apps in the past without a problem.  Recently updated 
to OSX 10.12.1, and LC 8.1.1.  I’ve downloaded and run the latest version of 
Android Studio (2.2.3) and installed all updates to both Java and Android.  
I’ve set the signing of the standalone to “Sign for development only”.   
Whenever I build a standalone, I get a "could not encode class bundle” error.

ANY thoughts would be appreciated!

-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode