이것저것아무거나공부한다

이것저것 프로젝트한다:: 안드로이드 스튜디오 작업을 하며 헷갈렸던 것

tools:context

[START]

참조 :

https://developer.android.com/studio/write/tool-attributes

1) 일단 tools는 namespace이며 design-time (디자인 타임) 속성이라고 합니다.

2) 실제로 앱이 build 될 때는 빌드 툴이 tools 관련 속성을 제거하여 APK 사이즈나 실행되는 앱에 영향을 주지 않는다고 합니다.

즉,  tools: 관련 속성을 코드단에서 지워도 전혀 문제가 되지 않습니다.

https://programmar.tistory.com/36

+오류::

A failure occurred while executing

http://com.android.build

.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction

> Android resource linking failed

ERROR: C:\Users\srnb1\AndroidStudioProjects\forever\app\src\main\AndroidManifest.xml:5:5-27:19: AAPT: error: resource style/Theme.Forever (aka com.planetcopapplication.forever:style/Theme.Forever) not found.

* Try:

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.

> Get more help at

https://help.gradle.org

>>매니페스트 android:theme 문제로 판명,

android:theme="@style/Theme.AppCompat.Light.NoActionBar" 로 수정하니 오류가 개선되었다.

본 문장은 툴바를 없애는 것인 듯 하다… 일단 이걸로 수정.

https://95mkr.tistory.com/entry/ANDROID6

—-

3 issues were found when checking AAR metadata:

1. Dependency 'androidx.credentials:credentials:1.5.0-alpha02' requires libraries and applications that

depend on it to compile against version 35 or later of the

Android APIs.

:app is currently compiled against android-34.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.3.0 is 34.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 35, then update this project to use

compileSdk of at least 35.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

2. Dependency 'androidx.biometric:biometric:1.4.0-alpha01' requires libraries and applications that

depend on it to compile against codename "VanillaIceCream" of the

Android APIs.

:app is currently compiled against android-34.

Recommended action: Use a different version of dependency 'androidx.biometric:biometric:1.4.0-alpha01',

or set compileSdkPreview to "VanillaIceCream" in your build.gradle

file if you intend to experiment with that preview SDK.

3. Dependency 'androidx.core:core:1.15.0-alpha01' requires libraries and applications that

depend on it to compile against version 35 or later of the

Android APIs.

:app is currently compiled against android-34.

Also, the maximum recommended compile SDK version for Android Gradle

plugin 8.3.0 is 34.

Recommended action: Update this project's version of the Android Gradle

plugin to one that supports 35, then update this project to use

compileSdk of at least 35.

Note that updating a library or application's compileSdk (which

allows newer APIs to be used) can be done separately from updating

targetSdk (which opts the app in to new runtime behavior) and

minSdk (which determines which devices the app can be installed

on).

SDK 업데이트 및 AGP 업데이트 어시스턴트 이용하여 디버깅

카테고리
#기타

댓글 0



추천 포스트