2017-07-01から1ヶ月間の記事一覧
Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class というerrorが出た・・・! これはMainfest.xmlにerrorの原因となっているclassが<activity>として定義されて無いからである。 だから <activity android:name=".view.${className}"/> を追加してあげよ!</activity></activity>
val password = editText { hint = "Password" inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_PASSWORD}//name.text.inNotEmpty()
rawファイル(自分でsrcの中に作る)に音楽ファイルをコピペした時のTemplate. fun setUpMusic() : Boolean{ var fileCheck = false try { mediaPlayer = MediaPlayer.create(this,R.raw.cave1) fileCheck = true }catch (e : IOException){ e.printStackTra…
Overload resolution ambiguity:ほげほげ というerrorが出る 引数が一致している(全く同じ関数)が出てきて選びようがないじゃないかぁ! 結論...原因は compile 'org.jetbrains.anko:anko-sdk15:0.9'compile 'org.jetbrains.anko:anko-sdk19:0.8.3' versio…
override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? { return UI { relativeLayout { verticalLayout { imageView{ setImageResource(R.drawable.kan_0)//here padding = dip(10) } } } }.v…
build errorした。原因は多分、 Plugin version (1.1.3-2) is not the same as library version (jre8-1.1.3-2) というerrorみたいだった。 https://developer.android.com/studio/preview/features/new-android-plugin-migration.html#variant_aware これの…