当我尝试使用Android Studio或从Terminal构建签名的APK时,出现以下错误:
在最新检查期间无法捕获任务':app:bundleReleaseJsAndAssets'属性'$ 1'的输入文件的指纹。
无法列出“ /Users/khalil/ReactNative/QRApp/QRApp/node_modules/metro/node_modules/sane/node_modules/.bin/watch”的内容。无法跟随符号链接。
在终端上,我正在使用的命令是:
<?php
class Person
{
protected $name;
protected $surname;
protected function __construct(string $name, string $surname)
{
$this->name = $name;
$this->surname = $surname;
}
public static function create(string $name, string $surname): self
{
// Some validation
if($name == ''){
throw new InvalidArgumentException('A person name can not be empty.');
}
if($surname == ''){
throw new InvalidArgumentException('A person surname can not be empty.');
}
return new self($name, $surname);
}
}
class Developer extends Person
{
protected $yearsOfExperience;
protected $preferredLanguage;
protected function __construct(string $name, string $surname, ?int $yearsOfExperience, ?string $preferredLanguage)
{
parent::__construct($name, $surname);
$this->yearsOfExperience = $yearsOfExperience;
$this->preferredLanguage = $preferredLanguage;
}
public static function create(string $name, string $surname, ?int $yearsOfExperience = null, ?string $preferredLanguage = null): self
{
// Some validation
if($yearsOfExperience < 0){
throw new InvalidArgumentException('The years of experience can not be negative.');
}
if($preferredLanguage == ''){
throw new InvalidArgumentException('The preferred language can not be empty.');
}
return new self($name, $surname, $yearsOfExperience, $preferredLanguage);
}
}
我已经在其他应用程序中做过很多次,但这是一个新应用程序,我认为我在新应用程序创建中缺少有关keyStore的东西或其他东西。