Video Game Only Works On Pixel 3 Device
- By Brian Berry
- Android Development
- 11 Replies
I built a video game and it works perfectly on my pixel 3 phone but if I put it on any other phone such as my SamSung Galaxy S7 it crashes. I compile it at min sdk 14 and target sdk 29. I suspect its a hardware issue but I've never seen anything like it here is my gradle configuration. Can anybody spot the issue or help me make it compatible more than just my pixel 3 phone?
Code:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 29
buildToolsVersion "29.0.0"
defaultConfig {
applicationId "com.calmchesscomputers.game1"
minSdkVersion 14
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.core:core-ktx:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
}