glTexImage2D emulator error in Android Studio - java

I keep getting an error when trying to run my app in android studio.
Image of error.
Text version: "Emulator: glTexImage2D: got err pre :( 0x502 internal 0x1907 format 0x1907 type 0x1401"
Google doesn't turn up anything. Does anyone know what it means or how to fix it?
Edit: the other solution didn't work. I'm still getting the error and the virtual device only shows a white screen.

Related

Android Studio Emulator Problem i cant use emulator

Im getting same problem when im trying to run my app on android studio it says error while launching activity here is a photo of error The Error
Notes:
1)-I already writed -r to install flags
2)-I already disactivated instant run
EDIT:1)http://www.imgim.com/8369incib5094271.png 2)http://www.imgim.com/2752incio6976569.png
3)http://www.imgim.com/5162incis8193748.png

Android Studio error "Internal error when trying to read zip file"

i'm a beginner in android studio (first time). I have this problem after i created empty activity then run with real device (mobile phone).
I hope some one can help me. Thank you.
More information
My device run on android 5.1 and connect with usb
Android studio v. 3.0.1
่JDK v. 9.0.4
JRE v. 9.0.4
Original code (empty project template)
I got the following message in the console.
Error:java.lang.RuntimeException: Internal error when trying to read zip file 'C:\Users\Jimmy.gradle\caches\transforms-1\files-1.1\support-core-ui-26.1.0.aar\3ac945728978df452e7f8cdd66ea71d9\jars\classes.jar'.
Error:com.google.common.base.VerifyException
Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: Internal error when trying to read zip file 'C:\Users\Jimmy.gradle\caches\transforms-1\files-1.1\support-core-ui-26.1.0.aar\3ac945728978df452e7f8cdd66ea71d9\jars\classes.jar'.
Attached Images

Android Studio Error Code 403: Gradle Sync Failed

Im starting to use Android Studio and from then, I encountered this nuisance of an error: Error:Server returned HTTP response code: 403 for URL: https://services.gradle.org/distributions/gradle-3.3-all.zip
What I dont understand is that, why and what may be the cause of this error... Is there any work around on this? I have set this following lines in my gradle.properties file inside the Project (MyApplication3/gradle.properties)
systemProp.http.proxyHost=192.168.140.19
systemProp.http.proxyPort=3128
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=localhost
systemProp.https.proxyHost=192.168.140.19
systemProp.https.proxyPort=3128
systemProp.https.proxyUser=userid
systemProp.https.proxyPassword=password
systemProp.https.nonProxyHosts=localhost
My System Admin said that there is no proxy user and password set so i dont know what to put on the proxyuser and proxypassword fields...
I hope there is someone that could help me :( im getting frustrated at this

Running applicatiom from eclipse causing phone restart

im using eclipse to develop android app.
Im debugging my app on real device, htc desire hd.
When i start my app from eclipse its allways restart my phone.
This behavior wasnt allways like this and suddenly happaned.
I tried 3 different ROMs all 4.2.2 and its happing in all of them.
In my log cat i dont see any errors except this in my console:
[2013-09-05 21:25:33 - WorkoutLog2] Failed to install WorkoutLog2.apk on device 'HT0BRRX047774!
[2013-09-05 21:25:33 - WorkoutLog2] (null)
[2013-09-05 21:25:33 - WorkoutLog2] Launch failed on device: HT0BRRX047774
Why this is happening?

Trouble reading an XML file in Android

I'm trying to parse an XML file thru a DOM parser. However, I am having difficulty in getting my Main Activity to actually read the file. I've read that I should place the file in Assets and then called with getAssets(). I used something like this:
InputStream is = this.getAssets().open("myXML.xml");
This just results in an error: Unexpected error while launching logcat. Try reselecting the device.] device not found.
I've also tried new File("myXML.xml") using variations on the absolute path. Nothing seems to work. I'm getting a little frustrated. Does anyone have any suggestions?
sounds to me, as if your IDE has no connection to the Emulator or device on which you are trying to test your app.
LogCat is a logging output stream that can be used by any app to print out informations /logs. And LogCat needs to be connected (via ADB) to your device.
If you don't have a real phone connected you can use an emulator:
/path/to/your/androidSDK/tools/android
this SDK manager helps you to create a new AVD (Android Virtual Device). Klick Tools>
Manage ACDs> New...
If you have a real phone or tablet connected to your computer, try restarting ADB
(should be possible from within your IDE) or use the command line.
change to the directory where the Android SDK is installed (in windows something like):
c:\Program Files\Android\android-sdk-windows\platform-tools\
on linux it could be:
/opt/android-sdk-linux/platform-tools/
then type (win and linux)
adb kill-server
adb start-server

Categories