Glassware build errors with ADT on Mac ; project crashes in Console before running - adt

Whenever I try to run my glass app I get these weird errors in the console after I run my Glassware project onto Glass Hardware:
- Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
- $myproject] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
Note: ($myproject is the name of my project)
Anyone know how to fix these? I find it really really really hard to use ADT compared to Xcode. Where is a good resource to get familiar with ADT and get answers on ADT dev environment for Glass?

Can you please post what Build Tools and SDK versions you are using on the current project?
You need Android SDK Build Tools 19.0.1 and Android SDK needs 4.0.3 which are not the most current releases. In order to Install these, use SDK Manager.
See this StackOverflow post with similar error message.
How to launch a regular activity on google glass

Related

How to debug with MonoDevelop?

I created a regular C# console application in MonoDevelop. I can compile it (if the IDE does not crash) and I can run it in the command line. Now I'd like to debug this console program. How do I do it? MonoDevelop seems not to support that (any more?). I get the error message "Could not connect to the debugger".
Googling did not help. The only solutions suggested don't apply as they are either Unity-specific or refer to an older version of MonoDevelop. (I'm running the most recent stable mono and MonoDevelop.)
Can anyone help me please with this? Thanks!

Xcode Server Bot integration fails to export archive with Assertion fail: exportArchive: ipatool failed with an exception

I have a build server setup with Xcode 7.2 and Server 5.0.15 so we can have CI. I'm able to create an Xcode Bot that creates an archive, but it's not able to finish the last step, which is exporting the ipa archive to the Server so it can be downloaded via ad hoc builds.
I'm able to create an archive from a local machine, but whenever I run a build bot using Distribution as the scheme, I get this error...
Bot Issue for TEST-BUILD-BOT-3 (build service warning)
Integration #8 of TEST-BUILD-BOT-3
Open in Xcode: xcbot://(null)/botID/fa5f2ef869edbde2181109e01843e862/integrationID/fa5f2ef869edbde2181109e01847dbb0
Assertion: exportArchive: ipatool failed with an exception: #<Errno::EEXIST: File exists - /var/folders/3x/8t3j9vnj48530fxd4g4djp14000087/T/ipatool20160318-45875-5xq2zz/MachOs/iphoneos/armv7/(dylibs)/libswiftContacts.dylib>
File: (null):(null)
Full logs for this integration are attached.
For one thing, I'm not sure where the full logs are attached (this error is shown in the Xcode build bot window).
Some information on my project:
The project consists of an app with three extensions (share photo, share safari and watch).
I'm using Cocoapods with some swift frameworks, so I'm using the use_frameworks! keyword in my podfile.
I've tried the following:
Made sure all targets (including pods) were using the Distribution certificate.
Tried w/ and w/o Bitcode enabled.
The worst part about trying to fix this issue is that the build bot takes 20-30 minutes each time I want to test some changes I made.
Any suggestions would be much appreciated!
I had the same error, in the watchapp and watchapp extension targets, i changed the setting, under Build Settings
Embedded Content Contains Swift Code No
And the error was gone
I found this technical post from apple that says any embedded content needs to be set to No to prevent multiple copies of the swift library being added. I interpreted that as a watch target would be embedded content, (not sure if thats what they meant)

NoClassDefFoundError: android.support.v4.app when sending push?

Im using PushBots to manage my push notifications for my app, I have been using this amazing platform for lots of apps and its the first time I have a problem like this.
Sometimes, when I launch the app, I get this error, but always when receiving a push (within or whitout the app opened).
07-12 01:20:00.844: E/AndroidRuntime(12140): FATAL EXCEPTION: IntentService[GCMIntentService-326*****5*9-1]
07-12 01:20:00.844: E/AndroidRuntime(12140): Process: com.karlol.mo***, PID: 12140
07-12 01:20:00.844: E/AndroidRuntime(12140): java.lang.NoClassDefFoundError: android.support.v4.app.NotificationManagerCompat
> //This is just the beginning of the log, there's more with some
> Pushbots handler info and stuff.... Let me know if I need to post it,
> its a lot.
Im pretty sure this is about the android support v4, this is my current build path:
*Sometimes when I uncheck the Private Libraries clean and re-check this option again the app works (but not lucky with notifications).
The support v4 jar is in the libs folder, the route is the correct (MyApp/libs)
Im about to release an update, my app is already working/running with pushbots servers (with registered devices and all) so I would like to solve this to release my update. Thanks.
As explained in these questions: NotificationManagerCompat Can't be resolved - Android Wear and Android studio unable to import WearableExtender NotificationManagerCompat and RemoteInput. It seems that you are not using the last version of the compatibility support library. You have two options to solve that:
Download the newest libraries manually, and add them to your project.
It seems that you are using eclipse, I recommend that you now use Android Studio so you can add the dependency and let gladle handle the libraries, like this
dependencies {
compile 'com.android.support:support-v4:20.0+'
}
check mark the following jars in build path or property ,it will work
1. android-support-v4.jar(appcombat/ibs)
2.android-support-v4-appcombat.jar(appcombat/ibs)

Android Development Tool (ADT) Plugin is not showing in Eclipse

The Android Development Tool (ADT) Plugin is not showing in Eclipse 4.4.0 on Ubuntu Linux, despite being installed.
I have tried:
sudo /opt/eclipse/eclipse -clean
and several complete re-installs of Eclipse.
On my several retries, the ADT sometimes did show up in the preferences, and asked for the SDK Location. Which I don't know, since I used Eclipse's Install new software interface. I've never been pointed to any install location. I can't find any file named android-sdk*.
1) How can I make the ADT show up?
2) When the ADT shows up in preferences, which directory is the SDK Location?
I've searched far and wide on Stackoverflow and elsewhere, but question 1) was always answered with 'un-install and re-install the ADT', which doesn't work, and question 2) was always considered a given; no actual directory was indicated in anything I found.
So much kudos to who can tell me!
One common problem is being in an Eclipse perspective other than Java. For example, if you are in perspective Java EE, Android ADT menu won't show.
Not sure about the SDK location when installed from ADT but it is probably an android directory in your home directory (/root/android or /home/user/android)

Blackberry Eclipse plugin for Mac installation voodoo needed

Has anyone successfully installed and run the Blackberry Eclipse plugin for MacOS?
Apparently, BB has not improved their Mac support much in the last year, since there was a question here about it last year.
I've followed their instructions to the letter, but they seem to assume that all you'll ever do in Eclipse is use their plugin. I want to move their plugin into an existing Eclipse installation.
I've copied the net.rim.* files from their Eclipse installation in to my /plugins folder, restarted, they show up in the list of installed plugins, but building an app always yields this error:
"Failed importing native project for BlackBerry. Missing Blackberry plugin. For more details see http://na.blackberry.com/eng/developers/javaappdev/javaupdate.jsp"
Thanks.
Mike
Here's the secret:
point Eclipse 3.6 Hellios to the following plug-in URL: http://www.blackberry.com/go/eclipseUpdate/3.6/web
Eclipse/Help/Install New Software... Add, enter some name and the URL above, and it works.

Resources