【Unity】3.5など古いバージョンでのAndroidビルド時のエラー
どうしても古いバージョンでビルドする必要があり、iOSは問題無かった物の、Android側でビルド時にエラーが起きていたので調査した。
起こったエラー:「Building DEX Failed」
http://blog.be-style.jpn.com/article/53229893.html
コメント欄にある、「【対処】暫定的な対処ですが android-sdk/build-tools/17.0.0/ の中のものを全て android-sdk/platform-tools/ へ複製する」でokだった。
mac環境の場合は、上記まででokだったものの、
windowsでやった見た時は、さらに、上記を行っても、「Error building Player: Win32Exception: ApplicationName='/xxxxx/android_sdk/tools/apkbuilder'...」
というエラーも出てしまった。
こちらは、https://github.com/ACSOP/android_sdk/blob/master/apkbuilder/etc/apkbuilderにある物をコピーして、 android_SDK/tools/ 以下に持ってくればokだった。
google maps httpsから表示されない?
t>
表示されたケース:
<script src="https://maps.google.com/m
t>
読み込みページに依存する、以下の方法でも表示された。
<script src="//maps.google.com/maps/ap
t>
【iOS】phpからAESの文字列を受け取り、それをDecryptしたい
http://iphoneappcode.blogspot.jp/2012/04/aes-encryption-and-decryption.html
(↑サイトの、dataFromHexStringという関数を参考にした)
XmlPullParserException: PI must not start with xml .. でパースできない(BOM付きxmlの扱い)
utf-8のxml、bom付きのファイルを解析する必要があったが、
そのままPullParserに入れると落ちてしまった。
ファイルそのものの保存形式を変えたいと真っ先に思ったが、
諸々の都合でそれは出来ず…
String xmlStr = "";
//UTF-8 BOM付きであれば頭削除
xmlStr = new String(result, 3, result.length - 3 , "UTF-8");
}else{
xmlStr = new String(result, "UTF-8");
}
というように、頭にbomがあればトリムして文字列化した物を
PullParserに渡すようにしたら、無事エラーは起きなくなった。
参考:http://www.geekality.net/2011/05/23/java-how-to-deal-with-the-bom-in-a-unicode-inputstream/