APK未安装在OREO

时间:2018-05-31 07:10:02

标签: android performance android-studio android-fragments android-8.0-oreo

当我尝试从adb安装时,它给了我这个错误

  

安装失败并显示消息INSTALL_FAILED_NO_MATCHING_ABIS:无法提取本机库,res = -113

这只会在oreo OS中发生。

我也在Build.gradle

中添加它
splits {
    abi {
        enable true
        reset()
        include 'x86', 'armeabi-v7a'
        universalApk true
    }
}

但这不起作用。

1 个答案:

答案 0 :(得分:0)

尝试找出项目中缺少的/** * @ORM\Entity(repositoryClass="App\Repository\PropertyRepository") */ class Property { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") * @Groups({"read"}) */ private $id; /** * @ORM\Column(type="string", length=30) * @Groups({"read"}) */ private $type; /** * @ORM\OneToMany(targetEntity="App\Entity\Books", mappedBy="property", orphanRemoval=true) * @Groups({"read"}) */ private $books; public function __construct() { $this->books = new ArrayCollection(); } public function getId() { return $this->id; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } /** * @return Collection|Books[] */ public function getBooks(): Collection { return $this->books; } public function addBook(Books $book): self { if (!$this->books->contains($book)) { $this->books[] = $book; $book->setProperty($this); } return $this; } public function removeBook(Books $book): self { if ($this->books->contains($book)) { $this->books->removeElement($book); // set the owning side to null (unless already changed) if ($book->getProperty() === $this) { $book->setProperty(null); } } return $this; } } 。 然后将它们包含为

ABIS

其次,检查您是否真的需要include 'arm', 'arm-v7a', 'arm64', 'mips', 'x86', 'x86_64', 'armeabi-v7a' ,您可以使用universalApkminsdkversion来覆盖整个范围。