修复Android demo编译错误的问题

This commit is contained in:
huanglinhuan
2025-12-19 11:28:44 +08:00
parent 36841d0b48
commit 16a066ac94
7 changed files with 42 additions and 7 deletions

View File

@@ -4,12 +4,13 @@ plugins {
} }
android { android {
compileSdk 31 namespace 'com.displayflow.receiver'
compileSdk 34
defaultConfig { defaultConfig {
applicationId "com.displayflow.receiver" applicationId "com.displayflow.receiver"
minSdk 24 minSdk 24
targetSdk 31 targetSdk 34
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
@@ -36,7 +37,7 @@ android {
externalNativeBuild { externalNativeBuild {
cmake { cmake {
path file('src/main/cpp/CMakeLists.txt') path file('src/main/cpp/CMakeLists.txt')
version '3.18.1' version '3.22.1'
} }
} }
} }

View File

@@ -8,9 +8,9 @@
<application <application
android:allowBackup="true" android:allowBackup="true"
android:icon="@mipmap/ic_launcher" android:icon="@drawable/ic_launcher"
android:label="DisplayFlow Receiver" android:label="DisplayFlow Receiver"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@drawable/ic_launcher"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.AppCompat.NoActionBar"> android:theme="@style/Theme.AppCompat.NoActionBar">
<activity <activity

View File

@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z"/>
<path
android:fillColor="#FFFFFF"
android:pathData="M54,54m-20,0a20,20 0 1,1 40,0a20,20 0 1,1 -40,0"/>
</vector>

View File

@@ -5,8 +5,15 @@ buildscript {
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath "com.android.tools.build:gradle:7.0.4" classpath "com.android.tools.build:gradle:8.2.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22"
}
}
allprojects {
repositories {
google()
mavenCentral()
} }
} }

View File

@@ -0,0 +1,2 @@
android.useAndroidX=true
android.enableJetifier=true

View File

@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@@ -0,0 +1,8 @@
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Fri Dec 19 10:07:55 CST 2025
sdk.dir=C\:\\Users\\huanglinhuan\\AppData\\Local\\Android\\Sdk