發表文章

目前顯示的是 2015的文章

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Only RGBA or White color spaces are supported in this situation.'

在幫一支app升級iOS 9以及Facebook SDK 4.6的時候 出現了錯誤訊息 其中包含了 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Only RGBA or White color spaces are supported in this situation.' 發現原來是 [[ UINavigationBar appearance ] setBarTintColor :[ UIColor colorWithPatternImage :[ UIImage imageNamed : @"bar_background.png" ]]]; 這行的原因

在Android studio中,5.0以下總是發生NoClass Found error的問題,android 5.0 以上裝置沒問題

一直都是使用android 5.x的手機測試專案 客戶反應4.x的手機無法登入 因為這是舊的專案,先前是在Eclipse中開發一直沒有這種問題 最近因為更新而轉移到Android Studio中並使用gradle才發生此問題 操作了不同的功能都顯示 NoClass Found error 但卻都是Resouce找不到 Building Apps with Over 65K Methods 參考以上文章後發覺可能是因為超過了這個限制 依照文中建議在mainfest的application標籤中加入了這個屬性 android:name = "android.support.multidex.MultiDexApplication" 若原本已經有application物件只要將parent改成MultiDexApplication就可以了

Mac 上的 Android Studio 修改 Heap Size

圖片
路徑在  /Applications/Android\ Studio.app/bin/studio.vmoptions 先打開Terminal 輸入 nano  /Applications/Android\ Studio.app/bin/studio.vmoptions 或是 open -e  /Applications/Android\ Studio.app/bin/studio.vmoptions 內容大概是 -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=64m -XX:+UseCodeCacheFlushing -XX:+UseCompressedOops 建議修改 -Xmx750m --> -Xmx1024m 即可,自己測試調整-Xms沒有什麼影響