728x90
java.net.SocketException: socket failed: EACCES (Permission denied) |
μ΄μ κΈμμ HttpURLConnection μν μ½λλ₯Ό μ§λλ° μμ κ°μ μλ¬κ° λ°μνλ€.
κΆνμ΄ κ±°λΆλμλ€κ³ ν΄ λ¬Έμ μ μμΈμ ꡬκΈλ§ ν΄ λ³΄λ, AndroidManifest.xml μ uses-permission μ λΉΌ λ¨Ήμμκ΅°...
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.devshin93.asynctasktest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <!-- μΆκ° -->
<uses-permission android:name="android.permission.INTERNET"/> <!-- μΆκ° -->
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.AsyncTaskTest"
android:usesCleartextTraffic="true"> <!-- μΆκ° -->
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
μ΄ λΆλΆ! μ΄λ€
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <!-- μΆκ° -->
<uses-permission android:name="android.permission.INTERNET"/> <!-- μΆκ° -->
'π κ°λ° > μλλ‘μ΄λ' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[μλλ‘μ΄λ] Splash Screen μμ (0) | 2021.10.20 |
---|---|
[μλλ‘μ΄λ] μμΈμ μ°Ύλ μ€... ^^ (2) | 2021.09.14 |
[μλλ‘μ΄λ] AsyncTask μ HttpURLConnection ...(1) Android Sample Code (2) | 2021.08.26 |
[μλλ‘μ΄λ] AAR(Android Archive) ν μ€νΈ ... 2 (2) | 2021.08.12 |
[μλλ‘μ΄λ] AAR(Android Archive) λ§λ€κΈ° ... 1 (0) | 2021.08.12 |
λκΈ