Tag: android

Docker中的Android模拟器

我试图启动Docker容器内的Android模拟器,但我得到错误: root@686d602e6ffa:~/android-sdk-linux/tools# ./emulator ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them you will have to do at least one of the following: – Use the '-force-32bit' option when invoking 'emulator'. – Set ANDROID_EMULATOR_FORCE_32BIT to 'true' in your environment. Either one will allow you to use the 32-bit binaries, but please be aware […]

Android应用程序中的Kotlin编译器:连接拒绝主机:127.0.0.1

我正在尝试在Docker中编译多模块android应用程序(这是一个CI构build)。 其中一些模块包含Kotlin源代码。 该构build在本地环境(MacOS)上运行良好,但出于某种原因在CI上失败。 本地环境 MacOS 10.125。 Java版本“1.8.0_121”(Java(TM)SE运行环境(build 1.8.0_121-b13) CI环境 Docker基础镜像openjdk:8-jdk 应用configuration Gradle Wrapper 4.0.-rc1 Android构build工具26 Kotlin版本'1.1.2-2' gradle.properties(虽然我玩过所有的组合,但都没有奏效) org.gradle.daemon=true org.gradle.parallel=true org.gradle.jvmargs=-Xmx2048M org.gradle.configureondemand=true kotlin.compiler.execution.strategy=in-process 它看起来像是与某个远程进程有关,因为无法连接到它。 我想到了Kotlin和Gradle deamon,但是在玩过不同的gradle.properties和其他configuration后,我似乎无法得到一个gradle.properties的configuration。 warning: [options] bootstrap class path not set in conjunction with -source 1.7 Using kotlin incremental compilation Using kotlin incremental compilation 1 warning Compilation with Kotlin compile daemon was not successful […]

使用Docker从命令行构build一个Android项目

我inheritance了我公司的Android Java代码,没有Gradle文件等,我希望能够在我的开发服务器(我从ChromeOS机器编程,因此CLI SSH服务器连接到我开发的服务器上进行编译东东)。 现在我发现了一些Docker镜像,像https://hub.docker.com/r/ksoichiro/android/ (甚至没有工作的命令行示例),但是我还没有设法创build一个APK。 我错过了什么,你会怎么做?

通过peer @ io_fillbuf重置连接 – fd:8(HTTPClient :: KeepAliveDisconnected)

我正在为android运行葫芦testing。 到目前为止,一切工作都很好。 但在某些方面,这是提出以下错误 HTTPClient :: KeepAliveDisconnected:通过peer @ io_fillbuf重置连接 – fd:8(HTTPClient :: KeepAliveDisconnected) 还有一件事,我错过了指定,当整个testing运行在docker集装箱上的问题正在提高。 同一个文件在本地运行,没有任何错误。 我搜查了很多,为此find了答案,到目前为止找不到。 所有有助于提前感谢。

'sh:1:file:not found'在Docker容器中创build一个android模拟器时

我正在尝试在Docker容器中创build一个Android模拟器,但遇到了一些问题。 SDK更新和AVD创build成功,我尝试创build模拟器,出现以下错误: ./emulator -avd test-22 -no-skin -no-audio -no-window sh: 1: file: not found sh: 1: file: not found WARNING: Cannot decide host bitness because $SHELL is not properly defined; 32 bits assumed. ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them 注:运行最后的docker版本,并使用java:8-jdk图像。 我的dockerfile可以在这里find=> https://gist.github.com/leoGalani/1f74621b8e82bd5bc8db586d1f34b8a2 – 有些人告诉我为API22安装x86 intel ABI / ARM,但是我无法find软件包名称,所以我可以通过命令行来安装。

如何在Docker上安装Ruby?

我正试图在docker上安装ruby。 我可以安装1.9版本,但不能安装最新版本,如2.2.0及以上版本。 我实际上是试图在docker上设置葫芦。 试过这个 。 每当我尝试安装葫芦android的错误 ERROR: Error installing calabash-android: luffa requires Ruby version >= 2.0.

Android的Docker容器:Gradle构build守护进程意外消失(可能已经死亡或者可能已经崩溃)

我尝试在Docker容器上构buildandroid,每次都./gradlew assembleDebug错误 :saltide-android:transformClassesWithDexForBikroyDebug从守护进程收到的消息表明守护进程已经消失。 发送构build请求:BuildAndStop {id = 81f2e456-bb5b-4cf8-9190-3c8b22e286b6.1,currentDir = / app / project-main}尝试读取守护进程日志中的最后一条消息。守护进程pid:35日志文件:/ root /.gradle/daemon/3.3/daemon-35.out.log —–守护进程日志文件的最后20行 – daemon-35.out.log —–:saltide-android:processBugsnagBikroyDebugManifest:hydrochloride-android :processBikroyDebugResources:saltside-android:generateBikroyDebugSources:hydrochloride-android:incrementalBikroyDebugJavaCompilationSafeguard:hydrochloride-android:javaPreCompileBikroyDebug:hydrochloride-android:compileBikroyDebugJavaWithJavacNote:一些input文件使用或覆盖弃用的API。 注意:使用-Xlint:deprecation重新编译以获取详细信息。 注意:一些input文件使用未经检查或不安全的操作。 注意:使用-Xlint重新编译:取消选中以获取详细信息。 :saltide-android:compileBikroyDebugNdk UP-TO-DATE:saltide-android:compileBikroyDebugSources:hydrochloride-android:mergeBikroyDebugShaders:ketoneide-android:compileBikroyDebugShaders:hydrochloride-android:generateBikroyDebugAssets:hydrochloride-android:mergeBikroyDebugAssets:ketoneide-android:processBugsnagBikroyDebugProguard: -android:transformClassesWithJarMergingForBikroyDebug:ketoneide-android:transformClassesWithMultidexlistForBikroyDebug:hydrochloride-android:transformClassesWithDexForBikroyDebug —–守护进程结束日志—–:失败:生成失败,出现exception。 :*出了什么问题:Gradle构build守护进程意外消失(可能已经死亡或者可能已经崩溃):*尝试:使用–stacktrace选项运行以获取堆栈跟踪。 运行–info或–debug选项来获得更多的日志输出。 我已经在gradle.properties中增加了内存和禁用守护进程 org.gradle.jvmargs=-Xmx4608m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 org.gradle.daemon=false 任何机构知道什么可以解决它?

Bitbucketpipe道:没有工具链在NDK工具链文件夹中findABI的前缀:aarch64-linux-android

对于使用Bitbucket Pipelines的 CI来说,我是一个完全陌生的人,并且正在通过本文的帮助来设置pipe道。 由于此错误,我的构build失败 “在NDK工具链文件夹中找不到工具链,前缀为:aarch64-linux-android” 任何人都可以帮我修理这个?

根据Docker文件安装不会发生

我正在使用docker运行葫芦androidtesting。 当我用我的docker文件构build容器时,除了第一行之外,它似乎没有任何执行。 当我检查是否安装ruby时,显示ruby版本。 除此之外没有任何工作。 我在这里添加docker文件结构。 ############################################################ # Docker file to run Calabash for android automation testing. ############################################################ FROM ruby:2.1-onbuild # install Android SDK dependencies RUN apt-get install openjdk-7-jdk # Install android sdk RUN wget http://dl.google.com/android/android-sdk_r23-linux.tgz RUN tar -xvzf android-sdk_r23-linux.tgz RUN mv android-sdk-linux /usr/local/android-sdk RUN rm android-sdk_r23-linux.tgz # Install Android tools RUN echo y | /usr/local/android-sdk/tools/android […]