Android

Android アプリが OutOfMemory で落ちるときに確認を忘れがちなこと -> Bitmapのサイズ, src, View.INVISIBLE

確認した端末の環境 Galaxy S6 Android 6.0 普段の空きメモリ 600m くらい 結論 動的にリソース指定する ImageView に レイアウトしやすいからって xml 上の src に画像指定しない アプリの内容と状況 大体全画面くらいのサイズの画像を2枚 ViewPager で 1枚…

java.lang.RuntimeException: Fail to connect to camera service

Android Studio の補完に任せて全部大文字だと java.lang.RuntimeException: Fail to connect to camera service <uses-permission android:name="android.permission.CAMERA" /> 権限は宣言してるつもり 他のアプリがカメラを掴んだままではない 自分のアプリもまだ掴んでない 大文字、小文字を直して治りました。</uses-permission>

google play のライブラリを入れたら Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'comm

google play のライブラリを入れたら Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.E…

error: reference to HttpEntity is ambiguous both constructor HttpEntity(T) in HttpEntity and constructor HttpEntity(MultiValueMap<String,String>) in HttpEntity match where T is a type-variable: T extends Object declared in class HttpEntity

Android annotations で下記でエラー。 error: reference to HttpEntity is ambiguous both constructor HttpEntity(T) in HttpEntity and constructor HttpEntity(MultiValueMap<String,String>) in HttpEntity match where T is a type-variable: T extends Object declar</string,string>…