Däñ*_*rmà 9 android android-emulator
我在用Emulator 7.1.1(Google Apis).完全例外是
E/AndroidRuntime: FATAL EXCEPTION: GLThread 309
java.lang.RuntimeException: createContext failed: 12291
at com.google.maps.api.android.lib6.gmm6.vector.bi.a(:com.google.android.gms.DynamiteModulesB:834)
at com.google.maps.api.android.lib6.gmm6.vector.bj.f(:com.google.android.gms.DynamiteModulesB:20825)
at com.google.maps.api.android.lib6.gmm6.vector.bj.run(:com.google.android.gms.DynamiteModulesB:881)
Run Code Online (Sandbox Code Playgroud)
代码工作正常,samsung galaxy J5但没有工作emulator.我搜索了谷歌和我的2小时浪费在这个错误上仍然无法找到解决方案.任何帮助将不胜感激.
我的build.gradle档案:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
dexOptions {
javaMaxHeapSize "4g"
}
defaultConfig {
applicationId "com.katariya.pomoc"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
multiDexEnabled true
renderscriptTargetApi 18
renderscriptSupportModeEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:design:25.3.0'
compile 'com.android.support:recyclerview-v7:25.3.0'
compile 'com.google.android.gms:play-services-maps:10.2.1'
compile 'com.google.android.gms:play-services-location:10.2.1'
compile 'com.google.android.gms:play-services-gcm:10.2.1'
compile 'com.google.firebase:firebase-core:10.2.1'
compile 'com.google.firebase:firebase-messaging:10.2.1'
compile 'com.squareup.picasso:picasso:2.5.0'
compile 'com.android.support:support-v4:25.3.0'
compile 'com.android.support:multidex:1.0.0'
compile 'commons-io:commons-io:2.4'
}
apply plugin: 'com.google.gms.google-services'
Run Code Online (Sandbox Code Playgroud)
创建新模拟器时,可以在模拟性能中选择一些选项。它可以是自动、硬件 GLES或软件 GLES。就我而言,软件 GLES 2.0发挥了魔力。地图的运行速度有点慢,但速度足够快,足以有耐心尝试我的应用程序。
| 归档时间: |
|
| 查看次数: |
2894 次 |
| 最近记录: |