Maven + Eclipse + Android 环境搭建

2023-11-04

Android官方开发团队致力于为Ecilpse插件提供可靠的支持,而android-maven-plugin致力于将Maven,Android和Eclipse串联在一起。m2e-android是一个 Maven Integration for Eclipse (m2e) plug-in,为Android Developer Tools (ADT)和 Maven Android Plugin添加Maven支持,为ADT提供Maven依赖管理的特性。 安装m2e-android需要Eclipse Indigo or Juno (低版本的Eclispe未提供Eclipse Marketplace)

1.Essentials Tools:必备工具

1.1 Android Development Tool(ADT)以及Android SDK。

这个是必须的,不用赘述。

1.2 Android Development Tools and the M2Eclipse

这个是Eclipse的插件,充当的角色是ADT及m2e之间的桥梁,由于Android项目的特性,Maven所做的操作在Android的项目上并不适用,所以这个插件相当于两个插件之间的适配器,使得m2e的插件作出的变更及其通知能够以ADT所能接受的方式通知ADT对Android的项目作出响应的变更。

进入Eclipse Marketplace.搜索android m2e ,然后点击Installer按钮即可。

本项目的Github托管地址为:

https://github.com/rgladwell/m2e-android

注意,目前该项目支持Eclipse indigo,juno,kepler三个版本。

1.3 Android Connector

这个是在Preferences->Maven->Discovery中选择Android Connector下载。


1.4 Maven-android-sdk-deployer

 

该项目的github托管地址为:https://github.com/mosabua/maven-android-sdk-deployer

该项目的主要作用是使得Maven Android插件能够使用Android SDK作为Dependence。

(1)Android SDK中下载部署所有你需要的platforms与add-ones.

(2)下载Github 上工程文件。

(3)使用命令行进入到工程目录下,使用mvn install安装依赖项。

(4)如果需要安装特定级别的SDK,使用如下:

  • mvn install -P 1.5
  • mvn install -P 1.6
  • mvn install -P 2.1
  • mvn install -P 2.2
  • mvn install -P 2.3.3
  • mvn install -P 3.0
  • mvn install -P 3.1
  • mvn install -P 3.2
  • mvn install -P 4.0
  • mvn install -P 4.0.3
  • mvn install -P 4.1
  • mvn install -P 4.2
  • mvn install -P 4.3
  • mvn install -P 4.4

如果有如下错误,说明你的SDK中可能确实相应的platforms。


2 配置

安装好m2e之后,需要选择你本地的Maven的安装路径。


在你的settings文件中也可以添加如下内容:

<span style="font-family:Microsoft YaHei;"><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"   

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   

  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">   

  <profiles>   

    <profile>   

      <id>android</id>   

        <properties>   

          <android.sdk.path>   

            E:\dev_tool\android-sdks(android-SDK home路径)  

          </android.sdk.path>   

        </properties>   

      </profile>   

    </profiles>   

    <activeProfiles> <!--make the profile active all the time -->   

      <activeProfile>android</activeProfile>   

    </activeProfiles>   

</settings></span>  

3 工程

如果你已经有了一个安卓的工程,可以直接右击->Configure->Convert to Maven Project转换为Maven项目,其中pom文件的packaging类型需要更改为apk.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  

    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">  

    <modelVersion>4.0.0</modelVersion>  

  

    <groupId>org.cst.ming.android.sample</groupId>  

    <artifactId>sample</artifactId>  

    <version>0.0.1-SNAPSHOT</version>  

    <packaging>apk</packaging>  

如果要新建一个Android 项目,可以根据如下步骤:

Create a new Maven Project (File -> New -> Project... then select Maven -> Maven Project).

When prompted to Select Archetype click Add Archetype...

In the dialog that appears enter "de.akquinet.android.archetypes" for Archetype Group Id.

In Archetype Artifact Id enter "android-quickstart".

In Archetype Version enter "1.0.10" and continue.

When prompted enter your desired project group and artifact ID, version and, optionally, set the "platform" property for the Android version (defaults to '16').

Click Finish

注意,这里的de.akquinet.android.archetypes模板的version经常会改变,可以前往Maven的Central仓库搜索查看相应版本。

Either way you should


在编译的时候,最好在pom文件中声明一个build插件:

<plugin>  

    <groupId>com.jayway.maven.plugins.android.generation2</groupId>  

    <artifactId>android-maven-plugin</artifactId>  

    <version>3.0.0</version>  

    <inherited>true</inherited>  

    <extensions>true</extensions>  

    <configuration>  

        <sdk>  

            <platform>7</platform>  

            <path>${env.ANDROID_SDK_HOME}</path>  

        </sdk>  

        <deleteConflictingFiles>true</deleteConflictingFiles>  

        <undeployBeforeDeploy>true</undeployBeforeDeploy>  

    </configuration>  

</plugin>  

4 常见问题

(1)No Android SDK path could be found.

在settings.xml里面添加:

<profiles>

    <profile>

        <id>android</id>

        <properties>

            <android.sdk.path>

                /Users/lily/android-sdk-macosx <!-- 此处为自己sdk路径 -->

            </android.sdk.path>

        </properties>

    </profile>

</profiles>

<activeProfiles> <!--make the profile active all the time -->

          <activeProfile>android</activeProfile>

</activeProfiles>

或者在系统变量中创建ANDROID_HOME变量,或者直接在pom.xml中指定android. sdk.path。

(2)[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sources(default-generate-sources) on project controltower-android: Executiondefault-generate-sources of goalcom.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:generate-sourcesfailed:

以及

Project Build Error:unknown packaging:apk

这是因为没有安装m2e android connector,可以按照如下步骤。

Preferences -> Maven -> Discovery and click "Open Catalog".然后选择 m2e android connector 安装好以后就可以解决这个问题。

(3)@Override 的代码全部都报错

默认Maven中的JAVA版本是1.5,只要修改成1.6就好了

<plugin>

  <groupId>org.apache.maven.plugins</groupId>

  <artifactId>maven-compiler-plugin</artifactId>

  <version>2.1</version>

  <configuration>

    <source>1.6</source>

    <target>1.6</target>

  </configuration>

</plugin>

(4)No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?这个错误即是找不到JDK的错误,可以使用如下方案:

l 在Eclipse的ini文件中添加如下语句:

-vm

C:\Program Files\Java\jdk1.7.0_25\bin\javaw.exe

l Window ->Preferences -> Java -> Installed JREs, 点击"Add"按钮,选择默认的"Standard VM", 点击"Next >", 点击"JRE home"右边的"Directory"选择文件夹D:\Development\Java\jdk1.7.0_25\jre,一路“确定”,回到"Installed JREs"界面,在刚添加的"jdk1.7.0_25"打上勾。再选择目录树中的"Execution Environments",点选界面左侧的"J2SE-1.7",然后在右侧点选"jdk1.7.0_25"。重启Eclipse,一切OK了。或者edit已经存在的jre,然后点击Add Extends JARS按键,添加jdk\lib\tools.jar文件,同样可以解决。

(5)导入工程后,pom.xml文件中,以下插件报错

          <plugin>

                <groupId>com.jayway.maven.plugins.android.generation2</groupId>

                <artifactId>android-maven-plugin</artifactId>

                <version>3.8.0</version>

                <configuration>

                    <sdk>

                        <!-- platform or api level (api level 4 = platform 1.6)-->

                        <platform>18</platform>

                    </sdk>

                    <undeployBeforeDeploy>true</undeployBeforeDeploy>

                </configuration>

                <extensions>true</extensions>

            </plugin>

提示:

Plugin execution not covered by lifecycle configuration: 

 com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0:consume-aar (execution:

 default-consume-aar, phase: compile)

解决:

打开 'Problems'视图: 'Window' -> 'Show View' -> 'Problems'

右键点击报错的地方,选择'Quick Fix'

点击选择'Permanently mark goal generate in pom.xml as ignored in Eclipse build' -> 'Finish' -> 'OK'

修改完后,右键项目—> Maven —> Update Project

(6)dependency=[com.actionbarsherlock:library:apklib:4.1.0:compile] not found in 
workspace com.actionbarsherlock.library 换了artifactId了,是actionbarsherlock,并且使用4.4.0的版本..Plugin execution not covered by lifecycle configuration: 

常用命令

Goal

Description

android:aar

Creates an Android Archive (aar) file.

android:apk

Creates the apk file. By default signs it with debug keystore.
Change that by setting configuration parameter <sign><debug>false</debug></sign>.

android:apklib

Creates the apklib file.
apklib files do not generate deployable artifacts.

android:clean

No description.

android:deploy

Deploys the apk(s) of the current project(s) to all attached devices and emulators. Automatically skips other projects in a multi-module build that do not use packaging apk without terminating.
Deploymnet is automatically performed when running mvn integration-test (or mvn install) on a project with instrumentation tests.

android:deploy-apk

Deploys a specified Android application apk to attached devices and emulators. By default it will deploy to all, but a subset or single one can be configured with the device and devices parameters.This goal can be used in non-android projects and as standalone execution on the command line. 

android:deploy-dependencies

Deploys all directly declared dependencies of <type>apk</type> in this project's pom.
Usually used in a project with instrumentation tests, to deploy the apk to test onto the device before running the deploying and running the instrumentation tests apk.
Automatically performed when running mvn integration-test (or mvn install) on a project with instrumentation tests.

android:devices

DevicesMojo lists all attached devices and emulators found with the android debug bridge. It uses the same naming convention for the emulator as used in other places in the Android Maven Plugin and adds the status of the device in the list. TODO The goal is very simple and could be enhanced for better display, a verbose option to display and to take the android.device paramter into account.

android:dex

Converts compiled Java classes to the Android dex format.

android:emma

After compiled Java classes use emma tool

android:emulator-start

EmulatorStartMojo can start the Android Emulator with a specified Android Virtual Device (avd).

android:emulator-stop

EmulatorStartMojo can stop the Android Emulator with a specified Android Virtual Device (avd).

android:emulator-stop-all

EmulatorStopeAllMojo will stop all attached devices.

android:generate-sources

Generates R.java based on resources specified by the resources configuration parameter. Generates java files based on aidl files.

android:help

Display help information on android-maven-plugin.
Call

  mvn android:help -Ddetail=true -Dgoal=<goal-name>

 

to display parameter details.

android:instrument

Runs the instrumentation apk on device.

android:internal-integration-test

Internal. Do not use.
Called automatically when the lifecycle reaches phase integration-test. Figures out whether to call goals in this phase; and if so, calls android:instrument.

android:internal-pre-integration-test

Internal. Do not use.
Called automatically when the lifecycle reaches phase pre-integration-test. Figures out whether to call goals in this phase; and if so, calls android:deploy-dependencies and android:deploy.

android:lint

LintMojo can run the lint command against the project. Implements parsing parameters from pom or command line arguments and sets useful defaults as well. Warning, if you use android.lint.enableClasspath and/or android.lint.enableLibraries the behavior of this goal will vary depending on the phase where this goal is executed. See android.lint.classpath/lintClassPath and android.lint.libraries/lintLibraries for more details.

android:manifest-update

Updates various version attributes present in the AndroidManifest.xml file.

android:monkey

Can execute tests using UI/Application Exerciser Monkey.
Implements parsing parameters from pom or command line arguments and sets useful defaults as well. This goal will invoke Android Monkey exerciser. If the application crashes during the exercise, this goal can fail the build. 
A typical usage of this goal can be found at Quality tools for Android project.

android:monkeyrunner

Can execute monkey runner programs.
Implements parsing parameters from pom or command line arguments and sets useful defaults as well. This goal will invoke monkey runner scripts. If the application crashes during the exercise, this goal can fail the build. 
A typical usage of this goal can be found at Quality tools for Android project.

android:ndk-build

No description.

android:proguard

Processes both application and dependency classes using the ProGuard byte code obfuscator, minimzer, and optimizer. For more information, see https://proguard.sourceforge.net.

android:pull

Copy file or directory from all the attached (or specified) devices/emulators.

android:push

Copy file to all the attached (or specified) devices/emulators.

android:redeploy

Undeploys and the deploys (= redeploys) the apk(s) of the current project(s) to all attached devices and emulators. Automatically skips other projects in a multi-module build that do not use packaging apk without terminating.

android:redeploy-apk

Reploys a specified Android application apk to attached devices and emulators. By default it will deploy to all, but a asubset or single one can be configured with the device and devices parameters. This simply tries to undeploy the APK first and then deploy it again. This goal can be used in non-android projects and as standalone execution on the command line.

android:run

Runs the first Activity shown in the top-level launcher as determined by its Intent filters.

Android provides a component-based architecture, which means that there is no "main" function which serves as an entry point to the APK. There's an homogeneous collection of Activity(es), Service(s), Receiver(s), etc.

The Android top-level launcher (whose purpose is to allow users to launch other applications) uses the Intent resolution mechanism to determine which Activity(es) to show to the end user. Such activities are identified by at least:

Action type: android.intent.action.MAIN

Category: android.intent.category.LAUNCHER


And are declared in AndroidManifest.xml as such:

<activity android:name=".ExampleActivity">

    <intent-filter>

        <action android:name="android.intent.action.MAIN" />

        <category android:name="android.intent.category.LAUNCHER" />

    </intent-filter>

</activity>

 

This Mojo will try to to launch the first activity of this kind found in AndroidManifest.xml. In case multiple activities satisfy the requirements listed above only the first declared one is run. In case there are no "Launcher activities" declared in the manifest or no activities declared at all, this goal aborts throwing an error.

The device parameter is taken into consideration so potentially the Activity found is started on all attached devices. The application will NOT be deployed and running will silently fail if the application is not deployed.

android:uiautomator

Can execute tests using ui uiautomator.
Implements parsing parameters from pom or command line arguments and sets useful defaults as well. This goal is meant to execute a special java project dedicated to UI testing via UIAutomator. It will build the jar of the project, dex it and send it to dalvik cache of a rooted device or to an emulator. If you use a rooted device, refer to this thread on stack over flow

The tests are executed via ui automator. A surefire compatible test report can be generated and its location will be logged during build. 

To use this goal, you will need to place the uiautomator.jar file (part of the Android SDK >= 16) on a nexus repository. 

A typical usage of this goal can be found at Quality tools for Android project.

android:undeploy

Undeploys the apk(s) of the current project(s) to all attached devices and emulators. Automatically skips other projects in a multi-module build that do not use packaging apk without terminating.
Deploymnet is automatically performed when running mvn integration-test (or mvn install) on a project with instrumentation tests.

android:undeploy-apk

Undeploys a specified Android application apk from attached devices and emulators. By default it will undeploy from all, but a subset or single one can be configured with the device and devices parameters. You can supply the package of the application and/or an apk file. This goal can be used in non-android projects and as standalone execution on the command line.

android:unpack

Unpack libraries code and dependencies into target. This can be useful for using the proguard maven plugin to provide the input jars. Although it is encouraged to use the proguard mojo of the android maven plugin.

android:zipalign

ZipalignMojo can run the zipalign command against the apk. Implements parsing parameters from pom or command line arguments and sets useful defaults as well.


本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Maven + Eclipse + Android 环境搭建 的相关文章

  • 如何自定义 Firebase 身份验证 ui

    我正在使用 Firebase Auth Ui 进行号码验证 我有一些要求 需要更改国家旋转器下拉项目的文本和背景颜色 我正在使用下面的样式 但它不会改变下拉菜单的背景颜色或项目的文本颜色 style name FirebaseUI Coun
  • 当活动被破坏时如何保存状态

    public class Talk extends Activity private ProgressDialog progDialog int typeBar TextView text1 EditText edit Button res
  • 数据库“/data/data/msv_database.db”的连接池无法授予连接。连接数:0 个活动连接、1 个空闲连接、0 个可用连接

    我收到以下错误 在整个应用程序中使用单个数据库对象从两个不同线程访问数据库时 数据库连接池 data data msv database db 无法授予与线程 802 的连接 连接数 0 个活动连接 1 个空闲连接 0 个可用连接 也许您想
  • 在 ubuntu 中找不到 .android 文件夹 [关闭]

    Closed 这个问题不符合堆栈溢出指南 help closed questions 目前不接受答案 我在哪里可以找到 android在 Ubuntu 中 我想使用debug keystore 转到您的主文件夹并按 ctrl h 瞧
  • Android Toast 消息不起作用

    我正在通过 Andengine 为 Android 开发游戏 我有 MainActivity 类和 GameScene 类 我在 GameActivity 中使用 Toast 消息 它正在发挥作用 Toast makeText this H
  • 如何使全屏覆盖在方向更改后保持全屏?

    我正在制作一个应用程序 它可以创建在屏幕上行走的微小精灵动画 我有一个主要活动 带有 启动服务 按钮 这会启动一个服务 该服务 在onCreate 创建一个全屏视图并将其附加到根窗口管理器 这部分工作完美 它充满了屏幕 您可以离开应用程序
  • 由于现有相机用户,相机“0”的手电筒不可用

    我想创建一个应用程序 它有一个用于录制视频的按钮和另一个单独的切换按钮 用于在录制视频期间打开闪光灯 我已经使用camera2 API为最近的androids构建了相机应用程序 可以通过图像按钮访问 我将火炬模式设置为切换按钮 但这根本不起
  • 单击另一个项目/小部件时展开/打开微调器?

    当用户单击另一个按钮时 我试图展开微调器 例如 我有一个带有值的微调器和一个 确定 按钮 当用户单击 确定 按钮而不从微调器中选择任何值时 微调器会自行扩展 是否可以在无需用户与微调器交互的情况下获得扩展微调器的事件 只需致电Spinner
  • Android 位置 API:获取提供商状态

    在 Android 中获取位置提供商状态的最佳方式是什么 当注册 LocationListener 以进行位置更新时 onStatusChanged String provider int status Bundle extras 每当状态
  • 如何检查 Android 设备是否在线

    我的服务器不断检查我的 Android 应用程序是否在线 请问我可以在我的android应用程序上执行哪些操作 创建一个名为 isNetworkAvailable 的帮助器方法 该方法将根据网络是否可用返回 true 或 false 它看起
  • Android:将图像裁剪为特定尺寸

    我的目的是让用户从图库中选择一张图像 然后进行裁剪活动 但是 我需要将定义裁剪蒙版的矩形锁定到某个尺寸 然后用户只需重新定位它即可显示图像的一部分 关于如何做到这一点有什么想法吗 Thanks T Intent intent new Int
  • 通过模拟器控制台或 ADB 更改 Android 模拟器方向

    我正在尝试构建一个自动化测试框架 用于检查应用程序应该响应的基本内容 而不会崩溃 其中之一是检查应用程序是否正确响应配置更改 现在 由于它是自动化的 我必须以编程方式在横向和纵向之间切换模拟器的方向 并观察它是否崩溃 大写 因为有很多与 c
  • 如何在启用抗锯齿的情况下旋转可绘制对象

    我需要将 ImageView 旋转几度 我通过子类化 ImageView 和重载来做到这一点onDraw Override protected void onDraw Canvas canvas canvas save canvas sca
  • Ionic 框架 - Config.xml

    我需要修改 config xml 文件 因此在针对 Android 进行编译时我会获取以下权限
  • 如何告诉 OkHttpClient 忽略缓存并强制从服务器刷新?

    在我的 Android 应用程序中 我将 Retrofit 与 OkHttpClient 结合使用 并启用缓存来访问某些 API 我们的一些 API 有时会返回空数据 我们在应用程序中提供了一个 刷新 按钮 供客户端从特定 API 重新加载
  • Android - 在图像/缩略图上覆盖播放按钮的最佳方式

    我有一个 Android 应用程序 可以播放音频 视频并显示图片 对于视频 我想在预览图像顶部以及列表视图中叠加一个播放按钮 现在我的做法是使用 xml 中的 ImageView 然后可绘制对象是一个图层图层列表 我以编程方式定义它 因为其
  • Android Lollipop 中应用程序外部配置文件和内部配置文件之间的数据传输

    相关问题安卓工作版 我的应用程序是一个设备管理员特权应用程序 现在我修改了创建托管工作配置文件并将其自身设置为配置文件所有者的代码 问题是 如果我upgrade我的应用程序 它成为设备管理员的配置文件所有者 现在将会有两份我的应用程序 一个
  • Android:是否可以在可绘制选择器中使用字符串/枚举?

    问题 Q1 有人设法让自定义字符串 枚举属性在 xml 选择器中工作吗 我通过以下 1 获得了一个布尔属性 但不是字符串属性 编辑 感谢您的回答 目前 android 仅支持布尔选择器 原因请参阅已接受的答案 我计划实现一个复杂的自定义按钮
  • 具有隐式授权的 OAuth 应用程序中的客户端模拟

    来自 OAuth 草案 隐式section https datatracker ietf org doc html draft ietf oauth v2 31 section 1 3 2 在隐式授权流程期间发出访问令牌时 授权服务器不对客
  • 带有不透明导航栏的深色文本透明状态栏

    等等 这不是重复的 类似的问题已被问到here https stackoverflow com questions 38025865 android fully transparent status bar with non transpa

随机推荐

  • java获取当前时间戳的方法

    https www cnblogs com zhujiabin p 6168671 html utm source itdadao utm medium referral 获取当前时间戳 方法 一System currentTimeMill
  • Qt中的位置和尺寸

    在QT中我们常见的 点 线 尺寸 矩形 都被进行了封装 下边依次为大家介绍相关的类 目录 QPoint QLine QSize QRect QPoint QPoint是C 编程语言中Qt框架中的一个类 它表示2D坐标系中的一个点 它用于定义
  • python如何判断一个数是整数,浮点数,复数还是字符?

    遇到判断字符类型 上网搜索了一下 整理下来 1 判断字符串 python字符串常用的判断函数很多 有如下8种 1 str isalnum 所有字符都是数字或者字母 2 str isdecimal 所有字符都是十进制数字 3 str isdi
  • 字符串格式化:% 运算符

    1 课题导入 任务 用字符串拼接法原样输出 圆周率是3 1415926 声明变量pi 用于存储圆周率 pi 3 1415926 type函数查看变量pi 的数据类型 print type pi 用字符串拼接的方法输出 str函数将浮点数类型
  • 一个简单音乐播放器的java实现(一)

    写在前面 这几天正在读head first系列的书籍 现在正好读的是java 这本书讲的深入浅出 环环相扣 非常精彩 不妨安利给大家 顺便把我学习过程中的一些心得体会已经实例分享出来 1 一个最简单音乐播放器的需求 我们需要四样东西 1 播
  • 【AlexNet论文精读以及代码复现以及训练结果】

    AlexNet论文精读以及代码复现 三遍读一篇论文的方法 李沐 1 标题 gt 摘要 gt 结论 gt 关键的图表 2 从标题开始读到最后 太过于细节部分可以先放一下 搞清楚重要的图标的细节 3 第三遍要弄清楚每句话在干嘛 搞清楚细节 并且
  • 操作系统课程实践5_进程通信

    一 实验目的 1 初步了解Linux环境下进程创建和进程间通信的机制 2 掌握如何利用消息和共享内存进行通信的原理 3 利用POSIX API函数编写实例程序 4 实现父子进程间通过消息传递和共享内存方式进行通信 二 实验内容 编制两个程序
  • 独家专访LAION创始人:高中生与科学家同酬,Discord上一呼百应

    在LAION 大家都是无偿的 我们不像公司雇佣员工 所以我们不会付钱 一旦你开始付钱 就会有这样的讨论 高中生应该拿多少工资 谷歌的高级工程师应该拿多少工资 我已经有足够的钱过上好日子了 现在税后月收入4500欧元 2000欧元用来付房租
  • 华为商城官网下单工具

    华为mate60新机一经发布 就一机难求 研究华为商城手机下单代码 抓包分析 经过几天时间 下单搞定 先打开辅助登录工具 任意选定一款产品 登录商城 并点击立即下单到订单确认页 直到登录工具检测到登录信息 登录成功后 即可关闭辅助登录工具
  • Android:自动点击屏幕

    在开发的过程中会遇到自动测试功能 比如如何自动点击按钮进行测试 当然可以使用按键精灵等工具进行测试 不过如何在程序进程中测试呢 下面就介绍下adb shell的操作 通过shell进行点击等操作 1 模拟滑动 input swipe sta
  • FPGA project : usrt_rs232

    module uart rx parameter UART BPS d9600 CLK FREQ d50 000 000 input wire sys clk input wire sys rst n input wire rx outpu
  • 查看nginx安装位置

    您可以使用以下命令来查找nginx的安装位置 which nginx 该命令将输出nginx二进制文件的路径 默认情况下 nginx二进制文件通常位于 usr sbin nginx 您还可以使用以下命令来查找nginx配置文件的位置 ngi
  • redis五种数据类型对应的底层数据结构

    redis五种数据类型对应的底层数据结构 redis的五种数据类型 redis核心对象redisObject type数据类型 encoding编码类型 ptr指针 redis五种数据类型对应的底层数据结构 String字符串类型 SDS
  • linux命令行正确退出_从命令行正确执行所有操作

    UNIX 命令行是WYTIWYG界面 也就是说 您输入的就是您得到的 UNIX提供了数百个 甚至数千个 命令 您可以使用这些命令来操纵内核和用户空间中的各种可用资源 需要监控CPU使用率吗 尝试top或ps 是否需要删除所有以 bak结尾的
  • 基于个性化推荐技术的大数据课程推荐 个性化课程资料知识推荐系统

    基于个性化推荐技术的大数据课程推荐 个性化课程资料知识推荐系统 源码获取 https www bilibili com video BV1Ne4y1g7dC 基本任务 本次课题是基于个性化推荐技术的大数据课程个性化推荐系统 目的是给学生提供
  • windows中启动 java -jar 后台运行程序

    第一种需要一直开着dos界面 java jar jar文件路径 第二种无需一直开着dos界面 1 新建my service bat文件 内容如下 echo off START my service javaw jar science 0 0
  • 代理IP和Socks5代理:跨界电商与爬虫的智能引擎

    跨界电商 作为全球市场的一部分 对数据的需求越来越大 同时 随着互联网的发展 爬虫技术也在不断演进 成为了跨界电商的关键工具之一 然而 随之而来的是网站的反爬虫机制和网络安全风险 在这种情况下 代理IP和Socks5代理应运而生 为企业提供
  • 后台管理系统 一 登录模块

    目录 模板介绍 项目目录 环境变量 登录业务 完成静态组件 vuex js cookie 第三方库 书写api axios的二次封装 解决代理跨域问题 项目地址 https gitee com childe jia background s
  • ios7 UIAnimation

    视图1 UIView rootview01 UIView alloc init rootview01 tag 101 rootview01 frame CGRectMake 0 20 320 460 rootview01 backgroun
  • Maven + Eclipse + Android 环境搭建

    Android官方开发团队致力于为Ecilpse插件提供可靠的支持 而android maven plugin致力于将Maven Android和Eclipse串联在一起 m2e android是一个 Maven Integration f