After updating my Android Studio to version 2.2.1 I can't get my app to display anything except black on the screen of my phone. Before updating it used to work. The app uses OpenGL ES 2.0. It works on an emulator but not on the real device. The app is running, it plays sounds as I touch on the screen, it's just not displaying anything. My phone is Huawei Honor 7.
将我的Android Studio更新到2.2.1后,我无法让我的应用程序在手机屏幕上显示除黑色外的任何内容。在更新它之前曾经工作过。该应用程序使用OpenGL ES 2.0。它适用于模拟器,但不适用于真实设备。该应用程序正在运行,它在我触摸屏幕时播放声音,它只是没有显示任何内容。我的手机是华为Honor 7。
I've tried everything I can think of such as restarting the phone, deleting the app from the phone, cleaning the project multiple times, manually deleting all the build directories and .iml files, disabling the instant run, building with different gradle versions, testing previous revisions of the app, switching between debug and release builds etc.
我已经尝试了我能想到的一切,例如重新启动手机,从手机中删除应用程序,多次清理项目,手动删除所有构建目录和.iml文件,禁用即时运行,使用不同的gradle版本构建,测试应用程序的先前版本,在调试版本和发布版本之间切换等。
What could be causing this?
可能是什么导致了这个?
1 个解决方案
#1
0
I still don't know what caused this, but what I did to get it working was that I deleted my previous project from Android Studio and made a completely new project with all the new project files stuff that Android Studio created for me, including CMake stuff that didn't exist before, and then copied all the relevant content to it from the previous project. Took one whole day but now at least it works. A lesson learned: Don't update your Android Studio if you're not prepared to spend some time fixing issues. I wish the Android Studio guys had hard of a concept called backwards compatibility...
我仍然不知道是什么造成了这种情况,但我做的工作就是我从Android Studio中删除了我之前的项目并创建了一个全新的项目,其中包含Android Studio为我创建的所有新项目文件,包括CMake以前不存在的东西,然后从之前的项目中复制所有相关内容。花了一整天但现在至少它起作用了。吸取的教训:如果您不准备花些时间修复问题,请不要更新您的Android Studio。我希望安卓工作室的人们有一个很难被称为向后兼容的概念......
#1
0
I still don't know what caused this, but what I did to get it working was that I deleted my previous project from Android Studio and made a completely new project with all the new project files stuff that Android Studio created for me, including CMake stuff that didn't exist before, and then copied all the relevant content to it from the previous project. Took one whole day but now at least it works. A lesson learned: Don't update your Android Studio if you're not prepared to spend some time fixing issues. I wish the Android Studio guys had hard of a concept called backwards compatibility...
我仍然不知道是什么造成了这种情况,但我做的工作就是我从Android Studio中删除了我之前的项目并创建了一个全新的项目,其中包含Android Studio为我创建的所有新项目文件,包括CMake以前不存在的东西,然后从之前的项目中复制所有相关内容。花了一整天但现在至少它起作用了。吸取的教训:如果您不准备花些时间修复问题,请不要更新您的Android Studio。我希望安卓工作室的人们有一个很难被称为向后兼容的概念......