我正在尝试生成签名的apk,但失败并显示以下错误:
C:/some/random/path/keystorename.jks: The system cannot find the path specified.
Android在错误的路径中搜索,而且,我刚刚创建了一个新的密钥库,应该在那里。
答案 0 :(得分:1)
Build -> Clean project
修复了该错误。
答案 1 :(得分:0)
您是否尝试在build.gradle中添加这些信息(在“ android”内部)? 对于Linux:
$page = $browser->createPage();
$page->navigate('https://www.google.co.uk')->waitForNavigation();
$path = public_path() . "/chrome_files";
$file = "/" . date('Ymdhis') . "_screen.jpg";
// screenshot - Say "Cheese"!
$page->screenshot([
'format' => 'jpeg',
'quality' => 80
])->saveToFile($path . $file);
// bye
$browser->close();
对于Windows:
signingConfigs {
config {
storeFile file('/home/yourPathHere/myapp.keystore')
keyAlias 'yourAliasHere'
keyPassword 'KeyPasswordHere'
storePassword 'storePasswordHere'
}
}