Skip to content

Instantly share code, notes, and snippets.

View topgenorth's full-sized avatar

Tom Opgenorth topgenorth

  • Sherwood Park, AB, Canada
View GitHub Profile
@topgenorth
topgenorth / Rakefile.rb
Created March 5, 2013 20:51
Rakefile for packaging release APK's for Xamarin.Android
require 'albacore'
@file_version = "2.0.0.0"
@keystore = "../keystores/opgenorth-release-key.keystore"
@alias_name = "mytrips"
@input_apk = "EmploymentStandardsJudgments.Android/bin/Release/net.opgenorth.esj.apk"
@signed_apk = "EmploymentStandardsJudgments.Android/bin/Release/net.opgenorth.esj-signed.apk"
@final_apk = "deploy/AlbertaEmploymentJudgments.apk"
task :default => [:clean, :versioning, :build, :sign]
@topgenorth
topgenorth / gist:4709483
Created February 4, 2013 20:30
Weird error....
Java.Lang.NoClassDefFoundError: evolvetabs/SpeakersAdapter
at Android.Runtime.JNIEnv.FindClass (System.String classname) [0x00087] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.4-series/6418373f/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:287
at Android.Runtime.JNIEnv.FindClass (System.Type type) [0x00009] in /Users/builder/data/lanes/monodroid-mac-monodroid-4.4-series/6418373f/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:245
at --- End of managed exception stack trace ---
at java.lang.NoClassDefFoundError: evolvetabs/SpeakersAdapter
at at evolvetabs.SpeakersActivity.n_onCreate(Native Method)
at at evolvetabs.SpeakersActivity.onCreate(SpeakersActivity.java:28)
at at android.app.Activity.performCreate(Activity.java:4465)
at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
Cleaning Solution: OuyaBinding (Debug)
Cleaning: OuyaBinding (Debug)
Build started 08/01/2013 9:44:05 PM.
__________________________________________________
Project "/Users/tom/Projects/OuyaBinding/OuyaBinding/OuyaBinding.csproj" (Clean target(s)):
Target CoreClean:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
@topgenorth
topgenorth / gist:4026180
Created November 6, 2012 17:26
generator.exe has stopped working
1>------ Rebuild All started: Project: FlurryBinding, Configuration: Debug Any CPU ------
1>Build started 11/6/2012 10:23:57 AM.
1>Environment at start of build:
1>ALLUSERSPROFILE = C:\ProgramData
1>APPDATA = C:\Users\Tom Opgenorth\AppData\Roaming
1>CommonProgramFiles = C:\Program Files (x86)\Common Files
1>CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
1>CommonProgramW6432 = C:\Program Files\Common Files
1>COMPUTERNAME = AEGIR
1>ComSpec = C:\Windows\system32\cmd.exe
@topgenorth
topgenorth / gist:3949316
Created October 24, 2012 22:21
LinkAssemblies task fails unexpectedly
1>------ Rebuild All started: Project: RestSharp.MonoDroid, Configuration: Release Any CPU ------
1> RestSharp.MonoDroid -> U:\tom\work\reportgraffiti.root\3rdparty\restsharp-RestSharp-054adce\RestSharp.MonoDroid\bin\Release\RestSharp.MonoDroid.dll
2>------ Rebuild All started: Project: ReportGraffiti, Configuration: Release Any CPU ------
2>U:\tom\work\reportgraffiti.root\Android\ReportGraffiti\SubmitPictureToWebsite.cs(26,50,26,63): warning CS0649: Field 'Net.Opgenorth.ReportGraffiti.SubmitPictureToWebsite._addToGallery' is never assigned to, and will always have its default value null
2> ReportGraffiti -> U:\tom\work\reportgraffiti.root\Android\ReportGraffiti\bin\Release\ReportGraffiti.dll
2>C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(693,5): error MSB4018: The "LinkAssemblies" task failed unexpectedly.
2>C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(693,5): error MSB4018: System.ArgumentOutOfRangeException: Specified argument was out of the range of vali
@topgenorth
topgenorth / gist:3949226
Created October 24, 2012 22:04
duplicate JAR files?
2>------ Rebuild All started: Project: ReportGraffiti, Configuration: Release Any CPU ------
2>C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(344,3): error : You have Jar libraries, android-support-v4.jar, that have the identical name with inconsistent file contents. Please make sure to remove any conflicting libraries in EmbeddedJar, InputJar and AndroidJavaLibrary.
/***
* Copyright (c) 2010 readyState Software Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
protected void setupView(Context context, final ViewGroup parent) {
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
if (parent == null) {
Log.e("TOMO", "The parent ViewGroup is null!");
}
View v;
// crashes on this line:
v = inflater.inflate(R.layout.balloon_overlay, parent);
Output from "Deploy to Device"
-------------------------------
Detecting installed packages
Waiting for packaging to complete
Installing application on device
Deployment failed. Internal error