Java 互联网许可
我有一个像那样的应用程序Java 互联网许可,java,android,android-gradle-plugin,android-permissions,Java,Android,Android Gradle Plugin,Android Permissions,我有一个像那样的应用程序 apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "25.0.2" defaultConfig { applicationId "com.example.ahmed.bigovenrecipes" minSdkVersion 15 targetSdkVersion 24
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.ahmed.bigovenrecipes"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
compile 'com.squareup.picasso:picasso:2.3.3'
testCompile 'junit:junit:4.12'
}
我想将Internet权限放在我不知道放在哪个部分。只需在您的
AndroidManifest.xml
文件中添加以下代码:
<uses-permission android:name="android.permission.INTERNET" />
如果要使用internet权限,请打开Androidmanifest.xml 将此
放在清单文件的顶部
只是为了你的信息,你不需要访问互联网的许可。因为,所有与internet相关的任务都会移交给其他应用程序
如果您的应用程序需要网络套接字,则您的应用程序需要internet许可才能使用它们。就这么简单。在manifiest文件中添加intenet permisson打开manifest.xml并键入@威利·门泽尔,这是我的商标!;)这是有规定的。称呼不应该是回答的一部分。“希望有帮助”是你的商标吗?你甚至不知道你的回答是否有用?很糟糕的商标,但正如威利所说,这无论如何都不被接受。@Tom,lol。我想这是谦虚的标志。如果不可接受,那么就可以了。我已经用了7个月了,这是第一次有人纠正我:p