我已经在PATH变量中设置了大约2000条路径(我知道它过多,但是我做了一些尝试),每当我尝试运行任何命令时,都会收到以下错误,在本例中为ls
。
-bash: /bin/ls: Argument list too long
我检查了有关错误消息的几个主题。但是,我想知道PATH var length与arg list错误有什么关系。
有人会提出想法/解释吗?
谢谢!
答案 0 :(得分:4)
使用同一缓冲区将命令行参数和环境都传递给新进程。在这种情况下,您的buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.appetiser.kookaborrow"
minSdkVersion 19
targetSdkVersion 28
versionCode 114
versionName "1.0.14"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-
optimize.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation('com.mikepenz:materialdrawer:5.6.0@aar') {
transitive = true
}
implementation('com.crashlytics.sdk.android:crashlytics:2.6.6@aar') {
transitive = true;
}
implementation('com.stripe:stripe-android:1.0.4@aar') {
transitive = true;
}
implementation('io.fabric.sdk.android:fabric:1.3.14@aar') {
transitive = true;
}
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.daimajia.slider:library:1.1.5@aar'
implementation 'com.android.support:design:28.0.0'
implementation 'com.github.arimorty:floatingsearchview:2.0.3'
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.google.firebase:firebase-appindexing:17.1.0'
implementation 'com.squareup:android-times-square:1.5.0@aar'
implementation 'be.billington.calendar.recurrencepicker:library:1.1.1'
implementation 'com.amazonaws:aws-android-sdk-ec2:2.3.3'
implementation 'com.amazonaws:aws-android-sdk-s3:2.3.3'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.kbeanie:multipicker:1.1.31@aar'
implementation 'com.prolificinteractive:material-calendarview:1.4.2'
implementation 'com.crystal:crystalrangeseekbar:1.1.1'
implementation 'com.thoughtbot:expandablerecyclerview:1.3'
implementation 'com.jakewharton:butterknife:10.1.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support:exifinterface:28.0.0'
implementation 'com.android.support:mediarouter-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
implementation 'com.mixpanel.android:mixpanel-android:5.1.1'
testImplementation 'junit:junit:4.12'
}
值似乎足以使环境超过操作系统对该缓冲区大小的限制。因此,即使是零参数列表也太长了。