小编nik*_*l n的帖子

Android 8上的INSTALL_FAILED_NO_MATCHING_ABIS错误

我正在尝试构建连接我的Pixel手机的应用程序.我最近将手机升级到Android 8.我能够在手机中构建和打开应用程序直到上次升级,但在此次升级后,我收到失败[INSTALL_FAILED_NO_MATCHING_ABIS:无法解压缩本机库,res = -113] 错误.

下面是我的gradle文件.有人可以告诉我这是什么问题吗?

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion '26.0.1'
    defaultConfig {
        applicationId "com.my.app.googlemaps"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
        multiDexEnabled = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    splits {
        abi {
            enable true
            reset()
            include 'x86', 'armeabi-v7a'
            universalApk true
        }
    }
    lintOptions {
        abortOnError false
    }
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
    } …
Run Code Online (Sandbox Code Playgroud)

android android-gradle-plugin android-8.0-oreo

7
推荐指数
1
解决办法
6382
查看次数

如何增加BottomNavigationView的宽度以填充屏幕

如何增加 BottomNavigationView 菜单的宽度。以下是当前场景。我无法增加整个屏幕的宽度。

在此输入图像描述

菜单.xml

 <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout  xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context="com.idea.nikhil.googlemaps.bottomNavigationbar">

        <FrameLayout
            android:id="@+id/container"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_above="@+id/bottom_navigation"
            android:layout_alignParentTop="true">
        </FrameLayout>
        <android.support.design.widget.BottomNavigationView
            android:id="@+id/bottom_navigation"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@color/white"
            app:itemIconTint="@drawable/bottom_navigation_selector"
            app:itemTextColor="@drawable/bottom_navigation_selector"
            app:menu="@menu/bottom_navigation_menu"
            android:layout_alignParentBottom="true" />
    </RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

android android-layout

0
推荐指数
1
解决办法
3464
查看次数