相关疑难解决方法(0)

使用Android Studio 3.1开发AOSP无法为仪表化测试构建测试apk

我正在尝试使用Android Studio构建定制的AOSP(在Android M,api 23上),因为我想对在硬件上运行的自定义应用程序运行检测测试.这是在ubuntu 64.这对我来说非常令人沮丧,因为没有明确的切入路径.

我的目标:我想按照本AS用户指南中步骤进行仪表化测试.


我运行了脚本

〜/ myAOSP/development/tools/idegen/intellij-gen.sh myApp公司/ apps/MY_APP

并在Android Studio中打开了MY_APP.iml.

现在我正在尝试使用gradle为我的项目构建apk,以及测试apk.

主要的myAOSP使用makefile.

我按照这里的说明进行操作,并使用build.gradle作为模板https://developer.android.com/studio/intro/migrate#migrate-intellij

// This buildscript{} block configures the code driving the build
buildscript {
   /**
    * The nested repositories{} block declares that this build uses the
    * jcenter repository.
    */
    repositories {
        jcenter()
        google()
    }

   /**
    * This block declares a dependency on the 3.1.0 version
    * of the Gradle plugin for the buildscript.
    */
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'
    } …
Run Code Online (Sandbox Code Playgroud)

android intellij-idea android-source android-studio-3.0

10
推荐指数
1
解决办法
1068
查看次数