To jest teraz bardzo dziwne. Bez względu na to, jaki to jest projekt, moja aplikacja na Androida nie będzie działać na żadnym innym ROM-ie, ale tylko na interfejsie API 25. Domyślna aplikacja hello world
nie będzie działać na żadnym innym interfejsie API. Zasadniczo instalacja apk kończy się niepowodzeniem na wszystkich innych ROM-ach oprócz tych, które są oparte na nouugacie.
My minsdkversion
jest 21 chociażAplikacje na Androida będą działać tylko w interfejsie API 25
Oto build.gradle (moduł: app)
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.rishav.basictest"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:25.4.0'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
}
Build.gradle (Projekt): -
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Jaki jest powód niepowodzenia? –
Co dzieje się po uruchomieniu aplikacji na urządzeniu z interfejsem API 21? –
Błąd @GabeSechan pokazuje w studio z Androidem: "Apk couldnt install -0" – Rishav