我尝试像这个链接签署我的应用程序.我写了我的signingConfigs设置,但是我收到"找不到属性"错误.
这是我的build.gradle
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion '19.0.3'
defaultConfig {
minSdkVersion 11
targetSdkVersion 19
versionCode 1
versionName "Andy Warhol"
}
buildTypes {
debug {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
debuggable false
jniDebugBuild false
signingConfig signingConfigs.myconfig
}
release {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
debuggable false
jniDebugBuild false
}
}
signingConfigs {
myconfig {
keyAlias 'xxx'
keyPassword 'xxx'
storeFile file('xxx')
storePassword 'xxx'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:+'
compile 'com.google.android.gms:play-services:4.0.30'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/picasso-2.2.0.jar')
compile files('libs/acra-4.5.0.jar') …Run Code Online (Sandbox Code Playgroud) 我试图在本地运行应用程序爬虫,以测试在 Android Studio 中创建的机器人脚本。
我遵循这篇方便的文章(https://android.jlelse.eu/test-robo-scripts-locally-useful-for-firebase-test-lab-pre-launch-reports-41da83d5769f)并遇到了爬虫程序的问题刚才说爬行开始,爬行立即完成。我在谷歌上找不到这个问题的任何答案。
这是日志中的错误:
权限拒绝:不允许从 pid=3778、uid=3778 启动检测 ComponentInfo{androidx.test.tools.crawler/androidx.test.tools.crawler.CrawlMonitor},因为包 androidx.test.tools.crawler 没有签名匹配目标 androidx.test.tools.crawler.stubapp
我终于找到了解决方案,所以我提出这个问题来帮助那些可能像我一样陷入困境的人。听起来有些人在这个问题上有同样的问题(/sf/answers/4104184451/)