草庐IT

Env_file

全部标签

android - Jenkins 无法创建新的 Android 模拟器 : Failed to parse AVD config file

SettingsforAndroidEmulatorwhenitfails[android]UsingAndroidSDK:/opt/android-sdk-linux[android]CreatingAndroidAVD:/var/lib/jenkins/.android/avd/hudson_en-US_120_WVGA_Google_Inc._Google_APIs_23_google_apis-armeabi-v7a.avd[android]/opt/android-sdk-linux/tools/androidcreateavd-f-a-sWVGA800-nhudson_en

android - 错误 : while Using Firebase and Google Map together in android Gradle File

1)当我用谷歌地图编译Firebase时它不起作用。2)如果我只使用Firebase或GoogleAPI,那么它就适合我。3)但我想同时使用这两种东西。4)对于我使用的Firebase:compile'com.google.firebase:firebase-messaging:10.0.1'compile'com.google.firebase:firebase-core:10.0.1'}applyplugin:'com.google.gms.google-services'5)对于谷歌地图compile'com.google.android.gms:play-services:10

android - 错误 : failed to read PNG signature: file does not start with PNG signature

我用我自己的文件替换了不同dpi文件夹中的默认Logo文件“ic_launcher.png”,也命名为“ic_launcher.png”,但现在我收到此错误:Error:failedtoreadPNGsignature:filedoesnotstartwithPNGsignature生成apk时,我在mipmap文件夹中替换了所有5个文件我该如何解决? 最佳答案 当您创建.apk时,所有资源都会被分析,如果您收到错误消息:Error:error:failedtoreadPNGsignature:filedoesnotstartwit

android - E/SQLiteLog : (283) recovered frames from WAL file

我每次启动我的应用程序时都会遇到错误。E/SQLiteLog:(283)recovered22framesfromWALfile/data/data/com.dmitrysimakov.kilogram/databases/androidx.work.workdb-wal应用程序运行正常,但我想知道为什么会出现此错误。databases/androidx.work.workdb-wal它是worker的日记。我使用Worker预填充我的数据库。Room.databaseBuilder(app,KilogramDb::class.java,"kilogram.db").addCallba

android - 是安卓:id specific to xml file or the whole project?

android:id="@+id/somevalue"是特定于定义它的xml文件,还是整个android项目?如果它是项目范围的,那么我似乎有很多id可以用于文本字段。例如,我必须将我的“标题”字段命名为“title1”和“title2”等... 最佳答案 它们在整个项目中是独一无二的,但可以在不同的上下文中使用。原因很简单:只有一个R.id.name_of_id变量,但它们不能从任何地方引用。我的意思是,如果你有一个名为@+id/my_id的ID,它位于my_layout.xml文件中,除非你当前正在使用,否则你不能使用它my_l

android - phonegap 安卓 : opening another html file in the phonegap webview

我正在构建一个phonegap(v1.3)android(for3.1sdk)应用程序。我像示例应用程序一样加载index.html页面publicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);super.setIntegerProperty("loadUrlTimeoutValue",60000);super.loadUrl("file:///android_asset/www/index.html");}这很好用。现在稍后我想在webview中加载另一个abc.html文件,当我通

解决:ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out

解决:ReadTimeoutError:HTTPSConnectionPool(host=‘files.pythonhosted.org’,port=443):Readtimedout文章目录解决:ReadTimeoutError:HTTPSConnectionPool(host='files.pythonhosted.org',port=443):Readtimedout背景报错问题报错翻译报错原因解决方法方法一:更换下载源方法二:设置超时时间方法三:换源+设置超时方法四:检查或更换网络环境方法五:离线安装今天的分享就到此结束了背景在使用之前的代码时,报错:raiseReadTimeoutE

android - "Invalid File"点击SD卡中的图片出错(android)

我需要在android中发送彩信,所以给出了如下代码,drawable中的图像首先保存在sd卡中,然后取回SMS正文,但在单击“发送”按钮后,我得到的图像如下所示.从SD卡下载的保存图像无法打开,我得到错误“无效文件”。检查图片名称,一切都是小写字母。我哪里出错了,请告诉我。Intent代码privatevoiddoSendIntent(Stringsubject,Stringtext){try{IntentsendIntent=newIntent(android.content.Intent.ACTION_SEND);//sendIntent.setType("message/rfc

android - SoapFault - 故障代码 : 'SOAP-ENV: Exception in android

我知道SO中已经存在相同类型的问题,但我没有找到解决方案。我明白了SoapFault-faultcode:'SOAP-ENV:Server'faultstring:'Procedure'login'notpresent'faultactor:'null'detail:null尝试从我的本地服务器获取响应时出现异常..我的wsdl代码应该是这样的:我的类(class)文件是:publicclassMainActivityextendsActivity{Stringstr=null;SoapObjectrequest;TextViewtv;@SuppressLint("NewApi")@O

android - Android 中的 File.toURI 和 Uri.fromFile 有什么区别

在尝试使用documentation中描述的相机Intent获取图片时.我已经添加了所需的MediaStore.EXTRA_OUTPUTextra,但问题是它没有将文件保存在我想要的位置。所以我更仔细地阅读了文档,并将其与我所做的进行了比较(因为我没有盲目复制/粘贴提供的示例代码),发现我正在使用intent.putExtra(MediaStore.EXTRA_OUTPUT,myFile.toURI());代替intent.putExtra(MediaStore.EXTRA_OUTPUT,Uri.fromFile(myFile));第二个版本运行完美,但我不明白为什么。这两种方法的文档