Unity uselegacypackaging = true problemi

Oflee

Hectopat
Katılım
21 Nisan 2022
Mesajlar
174
Daha fazla  
Cinsiyet
Erkek
Arkadaşlar merhaba, Unity de

Configure project: Launcher.

Kod:
WARNING:The option setting 'android.bundle.enableUncompressedNativeLibs=false' is deprecated.
The current default is 'true'.
It will be removed in version 8.0 of the Android Gradle plugin.
You can add the following to your build.gradle instead:
android {
 packagingOptions {
 jniLibs {
 useLegacyPackaging = true.
 }
 }
}
bu hatayı alıyorum. maintemplate.gradle dosyam da.
apply plugin: 'com.android.library'
APPLY_PLUGINS.
dependencies {
 implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start.
 implementation 'androidx.constraintlayout:constraintlayout:2.1.4' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:12
 implementation 'com.google.android.gmslay-services-ads:23.2.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7
 implementation 'com.google.android.ump:user-messaging-platform:2.2.0' // Assets/GoogleMobileAds/Editor/GoogleUmpDependencies.xml:7
// Android Resolver Dependencies End.
DEPS}
// Android Resolver Exclusions Start.
android {
 packagingOptions {
 exclude ('/lib/armeabi/' + '')
 exclude ('/lib/mips/' + '')
 exclude ('/lib/mips64/' + '')
 exclude ('/lib/x86/' + '')
 exclude ('/lib/x86_64/' + '')
 }
}
// Android Resolver Exclusions End.
android {
 ndkPath "NDKPATH"
 compileSdkVersion 35.
 buildToolsVersion 'BUILDTOOLS'.
 packagingOptions {
 jniLibs {
 useLegacyPackaging = true // Bu satırı ekleyin.
 }
 }
 compileOptions {
 sourceCompatibility JavaVersion.VERSION_11
 targetCompatibility JavaVersion.VERSION_11
 }
 defaultConfig {
 minSdkVersion 21.
 targetSdkVersion 35.
 ndk {
 abiFilters ABIFILTERS.
 }
 versionCode VERSIONCODE.
 versionName 'VERSIONNAME'.
 consumerProguardFiles 'proguard-unity.txt'USER_PROGUARD
 }
 lintOptions {
 abortOnError false.
 }
 aaptOptions {
 noCompress = BUILTIN_NOCOMPRESS + unityStreamingAssets.tokenize(', ')
 ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!.scc:!CVS:!thumbs.db:!picasa.ini:!~"
 }PACKAGING_OPTIONS
}
IL_CPP_BUILD_SETUP.
SOURCE_BUILD_SETUP.
EXTERNAL_SOURCES bu şekilde. 1 saat önce apk çıkarabiliyordum şimdi bu sorun oldu.
android {
 packagingOptions {
 jniLibs {
 useLegacyPackaging = true.
 }
 }
}

Kısmını sıonradan ekledim.
KYK internetine bağlanıp aab çıkarmaya çalıştığımda bu hata oldu. Clean Build de denedim hiçbir şekilde çözemedim. Ne yapmalıyım. Google AdMob ile de alakalı olabilir mi?
 

Technopat Haberler

Yeni konular

Geri
Yukarı