我的应用程序无法启动华为P8 Lite,但在其他设备上运行正常。 我长时间搜索这个问题,但我找不到有效的解决方案。
我的应用程序一直运行没有问题。然后我解决了一些问题,并在华为P8 Lite上崩溃了。我不明白。
logcat的:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="prestigetower.nextgendevelopers.prestigetower">
<uses-permission android:name="com.android.vending.BILLING"/>
<uses-ermission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:allowBackup="false"
android:icon="@mipmap/enemy_175"
android:label="@string/app_name"
android:supportsRtl="true"
android:hardwareAccelerated="false"
android:largeHeap="true"
android:debuggable="false"
android:name="android.support.multidex.MultiDexApplication">
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true" />
<service
android:enabled="true"
android:name="BackgroundSoundService" />
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/Theme.Transparent"
android:screenOrientation="portrait"
>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
<!-- END -->
</application>
</manifest>
这是我的清单(没有所有活动):
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "prestigetower.nextgendevelopers.prestigetower"
minSdkVersion 18
targetSdkVersion 25
versionName 'Version 0.9.3.3'
versionCode 933
multiDexEnabled true
}
buildTypes {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
productFlavors {
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:support-v4:25.0.0'
compile 'com.android.support:support-v13:25.0.0'
compile 'com.android.support:design:25.0.0'
compile 'com.android.support:recyclerview-v7:25.0.0'
compile 'com.android.support:support-annotations:25.0.0'
compile 'com.android.support:percent:25.0.0'
compile 'com.android.support:cardview-v7:25.0.0'
compile 'com.anjlab.android.iab.v3:library:1.0.+'
compile 'com.google.android.gms:play-services:10.2.4'
compile 'com.google.android.gms:play-services-ads:10.2.4'
testCompile 'junit:junit:4.12'
}
这是我的Build Gradle:
Math::Vector triangleVertices [3] = { Math::Vector(-0.5f, -0.5f, 0.0f),
Math::Vector(0.5f, -0.5f, 0.0f),
Math::Vector(0.0f, 0.5, 0.0f)};