Forum > Android

LAMW: This app isn't compatible/Slow with Android 14

<< < (2/4) > >>

jmpessoa:

Well, Android Studio "Hedgehog" use JDK 17 and gradle >= 8.2.1  and Target 34 (but Target 33 is the official for
"Play Store")

You can try open your LAMW project in Android Studio "Hedgehog" (just point up your project folder)

and then "build" and install your Apk....

Maybe we will learn about what is not correct in your application...
 

c4p:
I reinstalled LAMW using lamw_manager and get the same result.
Loading project in Android Studio results in the following:

* What went wrong:
A problem occurred evaluating root project 'AppLAMWProject24'.
> Failed to apply plugin 'com.android.internal.version-check'.
   > Minimum supported Gradle version is 8.2. Current version is 8.0. If using the gradle wrapper, try editing the distributionUrl in C:\Users\User\LAMWProjects\AppLAMWProject24\gradle\wrapper\gradle-wrapper.properties to gradle-8.2-all.zip

Also that gradle-wrapper.properties path doesn't exist but may be an Android Studio compatibility issue expecting to see that.
My version isn't 8.0 it's 8.5.

I reinstalled LAMW in a different folder and I get the exact same issue as with my current one using Android 14, only seen this issue on Android 14, not below.

I also deleted the .gradle directory in my project and user profile, but makes no difference on recreation.
Also worth mentioning that after deleting, the wrapper > dists folder in C:\Users\User\.gradle still shows gradle-8.0-bin folder, although that may be something or nothing, I was expecting to see gradle-8.5-bin.

jmpessoa:

Ok.

Create a new LAMW project  and send me  the "build.gradle" file....

and if possible, do the same using "Android Studio" and  send me  the "build.gradle" file, too.

c4p:
LAMW: build.gradle

buildscript {
    repositories {
        mavenCentral()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:8.2.0'
    }
}
allprojects {
    repositories {
       jcenter()
       google()
       mavenCentral()
       maven {url 'https://jitpack.io'}
    }
}
apply plugin: 'com.android.application'
android {
    namespace "org.lamw.applamwproject29"
    splits {
        abi {
            enable true
            reset()
            include 'armeabi-v7a'
            universalApk false
        }
    }
    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }
    compileSdk 34
    defaultConfig {
            minSdkVersion 23
            targetSdkVersion 34
            versionCode 6682784
            versionName "1.0"
            multiDexEnabled true
            ndk { debugSymbolLevel 'FULL' }
    }
    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
            jniLibs.srcDirs = ['libs']
        }
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }
    buildTypes {
        debug {
            minifyEnabled false
            debuggable true
            jniDebuggable true
        }
        release {
            minifyEnabled false
            debuggable false
            jniDebuggable false
        }
    }
    buildFeatures {
        aidl true
    }
    lint {
        abortOnError false
    }
}
dependencies {
    implementation  fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'androidx.multidex:multidex:2.0.1'
    implementation 'com.google.android.material:material:1.11.0'
}
tasks.register('run', Exec) {
 dependsOn ':installDebug'
   if (System.properties['os.name'].toLowerCase().contains('windows')) {
       commandLine 'cmd', '/c', 'adb', 'shell', 'am', 'start', '-n', "org.lamw.applamwproject29/.App"
   } else {
       commandLine 'adb', 'shell', 'am', 'start', '-n', "org.lamw.applamwproject29/.App"
   }
}
 
wrapper {
    gradleVersion = '8.5'
}


Android Studio Gradle build.gradle.kts:
plugins {
    id("com.android.application")
    id("org.jetbrains.kotlin.android")
}

android {
    namespace = "com.example.myapplication"
    compileSdk = 34

    defaultConfig {
        applicationId = "com.example.myapplication"
        minSdk = 34
        targetSdk = 34
        versionCode = 1
        versionName = "1.0"

        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            isMinifyEnabled = false
            proguardFiles(
                getDefaultProguardFile("proguard-android-optimize.txt"),
                "proguard-rules.pro"
            )
        }
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = "1.8"
    }
    buildFeatures {
        viewBinding = true
    }
}

dependencies {

    implementation("androidx.core:core-ktx:1.10.1")
    implementation("androidx.appcompat:appcompat:1.6.1")
    implementation("com.google.android.material:material:1.9.0")
    implementation("androidx.constraintlayout:constraintlayout:2.1.4")
    implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.6.1")
    implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1")
    implementation("androidx.navigation:navigation-fragment-ktx:2.6.0")
    implementation("androidx.navigation:navigation-ui-ktx:2.6.0")
    testImplementation("junit:junit:4.13.2")
    androidTestImplementation("androidx.test.ext:junit:1.1.5")
    androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}

c4p:
I'm giving up on this for now on Android 14 and reverting to Android 12 for dev work, an absolute pain as Android 14 is my main phone. I have tried everything to get around this and totally stuck, can anyone else confirm that if when you install the app manually it doesn't come up with 'App isn't compatible....' on Android 14? and I am also getting slow/sluggish response times on Android 14 compared to any lower API, which works perfect for me, no issues.
I tried a full reinstall using lamw_manager and same issue.
If someone comes back saying "No problems here on Android 14" I would like to know your config please.

 :(

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version