Created
June 13, 2021 23:55
-
-
Save sineausr931/53c460529c6ee6790bb35a60037e7163 to your computer and use it in GitHub Desktop.
Mangled code causes OOM in Android Studio 4.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To repeat: | |
// - Create an empty android activity project for Kotlin | |
// - Add the following class and *POOF* go look at top | |
package com.example.android.myapplication | |
import android.util.Log | |
import android.view.MotionEvent | |
import android.view.View | |
class BoardLayout { | |
override fun onTouch(v: View, event: MotionEvent): Boolean { | |
Log.d(LOG_TAG, "---- onTouch called: event.action = ${event.action}, " + MotionEvent.actionToString(event.action)}) | |
Log.d(LOG_TAG, "info: MotionEvent.ACTION_MASK = ${MotionEvent.ACTION_MASK}") | |
return true | |
} | |
} | |
/* | |
Android Studio 4.2.1 | |
Build #AI-202.7660.26.42.7351085, built on May 10, 2021 | |
Runtime version: 11.0.8+10-b944.6916264 x86_64 | |
VM: OpenJDK 64-Bit Server VM by N/A | |
macOS 10.16 | |
ext.kotlin_version = "1.5.0" | |
classpath "com.android.tools.build:gradle:4.1.1" | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OH GOD OH GOD it's on other platforms
2021-06-14 18:29:46,151 [ 228002] ERROR - llij.ide.plugins.PluginManager - Android Studio 4.2.1 Build #AI-202.7660.26.42.7351085
2021-06-14 18:29:46,151 [ 228002] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.8; VM: OpenJDK 64-Bit Server VM; Vendor: N/A
2021-06-14 18:29:46,151 [ 228002] ERROR - llij.ide.plugins.PluginManager - OS: Linux
2021-06-14 18:29:46,151 [ 228002] ERROR - llij.ide.plugins.PluginManager - Plugin to blame: Kotlin version: 202-1.5.0-release-764-AS8194.7