Pjsip 尝试创建传输时出现错误代码120013

Pjsip 尝试创建传输时出现错误代码120013,pjsip,Pjsip,当我试图使用pjsua_transport_create函数设置UDP传输时,pj_status_t返回120013错误 这是什么意思 谢谢谷歌搜索了一下,上面只说了这样的话 拒绝许可(120013) 看起来你没有做某事的权限, 可能您正在使用非标准端口?Android:将这些权限作为清单的直接子项添加到您的AndroidManifest.xml中 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="h

当我试图使用pjsua_transport_create函数设置UDP传输时,pj_status_t返回120013错误

这是什么意思

谢谢

谷歌搜索了一下,上面只说了这样的话

拒绝许可(120013)

看起来你没有做某事的权限,
可能您正在使用非标准端口?

Android:将这些权限作为清单的直接子项添加到您的AndroidManifest.xml中

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.sipapp" >

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<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/AppTheme" >
    <activity android:name=".MainActivity" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>


你是对的!!我错过了允许我的清单文件中的网络连接,真是个傻瓜!ThanksHello,很抱歉撞到这个,这个清单在哪里,这些权限设置在哪里?你好,很抱歉这是很久以前的事了,我记不清了。但是有一个清单文件(称为“清单”或类似文件),您可以在其中定义应用程序拥有的权限。在本例中,问题是应用程序没有访问网络的权限。