[안드로이드 스튜디오] java.lang.ClassNotFoundException 오류 해결법 + 설치링크
2023. 9. 11. 15:07ㆍ카테고리 없음
728x90
프로젝트
manifests -> AndroidManifest.xml에 들어가서 application 에 아래 코드 추가
<uses-library android:name="org.apache.http.legacy" android:required="false" />
코드 전문
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.KTGrammar"
tools:targetApi="31">
<uses-library android:name="org.apache.http.legacy" android:required="false" />
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
https://developer.android.com/studio
Download Android Studio & App Tools - Android Developers
Android Studio provides app builders with an integrated development environment (IDE) optimized for Android apps. Download Android Studio today.
developer.android.com
728x90