I have connect java REST on local my computer(10.191.20.97:8080) I am making a android login app that is connecting to Java server. from browser i have successful connection with server but with android studio is somethings wrong:
I/System.out: port:8080
W/System.err: java.net.ConnectException: Failed to connect to /10.191.20.97:8080
W/System.err: at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:143)
at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
W/System.err: at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:299)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:237)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:461)
W/System.err: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
W/System.err: at com.hpi.android.assetmanagement.ui.updateapk.MainCheckVersion$1GetDataJSON.doInBackground(MainCheckVersion.java:358)
W/System.err: at com.hpi.android.assetmanagement.ui.updateapk.MainCheckVersion$1GetDataJSON.doInBackground(MainCheckVersion.java:334)
W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:333)
W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
E/Internet: => false
D/WindowClient: Add to mViews: DecorView#d78cc18[], this = android.view.WindowManagerGlobal#3577954
D/ViewRootImpl[MainCheckVersion]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false
I/zygote: Do full code cache collection, code=252KB, data=207KB
I/zygote: After code cache collection, code=252KB, data=176KB
D/Surface: Surface::connect(this=0x8f824000,api=1)
D/Surface: Surface::allocateBuffers(this=0x8f824000)
D/Surface: Surface::disconnect(this=0x8f823000,api=1)
D/Surface: Surface::connect(this=0x8f823000,api=1)
D/Surface: Surface::disconnect(this=0x8f823000,api=1)
D/View: [Warning] assignParent to null: this = DecorView#67cfdda[]
D/WindowClient: Remove from mViews: DecorView#67cfdda[], this = android.view.WindowManagerGlobal#3577954
Related
I have a permission denied problem when I run the app in my android studio. Before that, I need to declare that my group mates can run the code and pop out the data but me, we all use the same code and version but I use a mac that they use the win system.
Below is the logcat info:
Late-enabling -Xcheck:jni
E/ample.inclass0: Unknown bits set in runtime_flags: 0x8000
W/ample.inclass0: Unexpected CPU variant for X86 using defaults: x86
D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
W/RenderThread: type=1400 audit(0.0:660): avc: denied { write } for name="property_service" dev="tmpfs" ino=857 scontext=u:r:untrusted_app:s0:c151,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
W/ample.inclass0: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
W/ample.inclass0: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
W/System.err: java.net.SocketException: socket failed: EPERM (Operation not permitted)
W/System.err: at java.net.Socket.createImpl(Socket.java:492)
W/System.err: at java.net.Socket.getImpl(Socket.java:552)
W/System.err: at java.net.Socket.setSoTimeout(Socket.java:1180)
W/System.err: at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:293)
W/System.err: at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
W/System.err: at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
W/System.err: at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
W/System.err: at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
W/System.err: at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
W/System.err: at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
W/System.err: at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
W/System.err: at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
W/System.err: at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
W/System.err: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
W/System.err: at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
W/System.err: at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/System.err: at java.lang.Thread.run(Thread.java:919)
D/HostConnection: HostConnection::get() New Host Connection established 0xdb7e2040, tid 5252
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_sync_buffer_data GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xf1f7e5c0: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0xf1f7e5c0: ver 3 0 (tinfo 0xe6d24dd0)
W/Gralloc3: mapper 3.x is not supported
D/HostConnection: createUnique: call
D/HostConnection: HostConnection::get() New Host Connection established 0xdb7e3800, tid 5252
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_sync_buffer_data GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0
D/eglCodecCommon: allocate: Ask for block of size 0x1000
D/eglCodecCommon: allocate: ioctl allocate returned offset 0x3ff807000 size 0x2000
D/EGL_emulation: eglMakeCurrent: 0xf1f7e5c0: ver 3 0 (tinfo 0xe6d24dd0)
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0
Below is the AndroidMainfest file:
For toolsLtargetApi="31" I tried to delete and run nothing changed
<?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="com.example.inclass07">
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<application
android:allowBackup="true"
android:dataExtractionRules="#xml/data_extraction_rules"
android:fullBackupContent="#xml/backup_rules"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/Theme.InClass07"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Could anyone give me some suggestions to solve the issue? Any help is appreciated.
I am not sure if this will work for everyone, but I solved my problem by changing the Emulator.
Previously, I used the Nexus 5X Q(API29), but now I switched to the Nexus 5X API33 and doing so solved my problem.
I also tried others with API33 and they work just fine.
Cant start maps acctivity I am getting package signed with unknown certificate(go/gsrlt)
2022-02-18 13:16:04.444 14198-14239/com.example.airservice W/ProtoDataStoreFlagStore: Unable to update local snapshot for com.google.android.libraries.consentverifier#com.example.airservice, may result in stale flags.
java.util.concurrent.ExecutionException: java.lang.SecurityException: GoogleCertificatesRslt: Package signed with unknown certificate (go/gsrlt)
at ago.s(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):3)
at ago.get(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):2)
at ais.a(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):1)
at ahy.g(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):1)
at wx.e(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):1)
at ye.run(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):0)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.SecurityException: GoogleCertificatesRslt: Package signed with unknown certificate (go/gsrlt)
at android.os.Parcel.readException(Parcel.java:1684)
at android.os.Parcel.readException(Parcel.java:1637)
at ee.aZ(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):2)
at qu.a(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):4)
at ik.e(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):2)
at jj.t(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):2)
at jj.u(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):3)
at jj.e(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):2)
at jn.handleMessage(:com.google.android.gms.dynamite_mapsdynamite#214815052#21.48.15 (040700-0):69)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
I'm having trouble using these codes on Android 9 (work fine in lower versions)
Exits immediately and below error
E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
Process: com.banehmall.application, PID: 2092
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:354)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/bind/DatatypeConverter;
at org.scribe.services.DatatypeConverterEncoder.encode(DatatypeConverterEncoder.java:10)
at org.scribe.services.HMACSha1SignatureService.bytesToBase64String(HMACSha1SignatureService.java:51)
at org.scribe.services.HMACSha1SignatureService.doSign(HMACSha1SignatureService.java:46)
at org.scribe.services.HMACSha1SignatureService.getSignature(HMACSha1SignatureService.java:32)
at org.scribe.oauth.OAuth10aServiceImpl.getSignature(OAuth10aServiceImpl.java:151)
at org.scribe.oauth.OAuth10aServiceImpl.addOAuthParams(OAuth10aServiceImpl.java:75)
at org.scribe.oauth.OAuth10aServiceImpl.signRequest(OAuth10aServiceImpl.java:126)
at com.ciyashop.library.apicall.PostApi$postAPiCall.doInBackground(PostApi.java:109)
at com.ciyashop.library.apicall.PostApi$postAPiCall.doInBackground(PostApi.java:40)
at android.os.AsyncTask$2.call(AsyncTask.java:333)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.xml.bind.DatatypeConverter" on path: DexPathList[[zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/base.apk", zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/split_lib_dependencies_apk.apk", zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/split_lib_resources_apk.apk", zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/split_lib_slice_0_apk.apk", zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/split_lib_slice_1_apk.apk", zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/split_lib_slice_2_apk.apk", zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/split_lib_slice_3_apk.apk", zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/split_lib_slice_4_apk.apk", zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/split_lib_slice_5_apk.apk", zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/split_lib_slice_6_apk.apk", zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/split_lib_slice_7_apk.apk", zip file "/data/app/com.banehmall.application-5XvyXjUfi1L5D2K7385M5A==/split_lib_slice_8_apk.apk", zip file "/data/app/com.banehmall.application-.
.
.
After adding this (commons-codec:commons-codec:1.10)library, app worked but the data is not received from the server and have
this log
E/Exception is: There was a problem while creating a connection to the remote service.
E/EGL_emulation: tid 2357: eglSurfaceAttrib(1354): error 0x3009 (EGL_BAD_MATCH)
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xeb2e4dc0, error=EGL_BAD_MATCH
E/EGL_emulation: tid 2357: eglSurfaceAttrib(1354): error 0x3009 (EGL_BAD_MATCH)
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xeb2e4e20, error=EGL_BAD_MATCH
E/getHomeDataResponse is: OAuthConnectionException
E/getHomeDataGson Exception is: Value OAuthConnectionException of type java.lang.String cannot be
converted to JSONObject
I/OpenGLRenderer: Davey! duration=899ms; Flags=0, IntendedVsync=1587234779362, Vsync=1587568112682,
OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=1587582802287,
AnimationStart=1587582869695, PerformTraversalsStart=1587582992031, DrawStart=1587644518429,
SyncQueued=1587720147467, SyncStart=1587740410691, IssueDrawCommandsStart=1587740635430,
SwapBuffers=1588088691627, FrameCompleted=1588154607644, DequeueBufferDuration=199000,
QueueBufferDuration=417000,
thank you so mach
Hi i found the solution to this problem. In Android 9(28 and up)uses HTTPS ,if your server uses HTTP this error is happen. answer is writing the following code in the manifest
<application
.
.
.
android:usesCleartextTraffic="true">
<uses-library android:name="org.apache.http.legacy" android:required="false" />
if not work use Invalidate Caches / Restart
I can't get html code from this website "http://www.posh24.se/kandisar". But when I try to download data from "google.com" - it works? How i can fix it? Maybe i must add some permissions?
private static class DownloadContentStars extends AsyncTask<String, Void, String> {
#Override
protected String doInBackground(String... strings) {
URL url = null;
HttpURLConnection urlConnection = null;
StringBuilder result = new StringBuilder();
try {
url = new URL(strings[0]);
urlConnection = (HttpURLConnection) url.openConnection();
InputStream in = urlConnection.getInputStream();
InputStreamReader inputStreamReader = new InputStreamReader(in);
BufferedReader reader = new BufferedReader(inputStreamReader);
String line = reader.readLine();
while (line != null) {
result.append(line);
line = reader.readLine();
}
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
if (urlConnection != null) {
urlConnection.disconnect();
}
}
return result.toString();
}
}
Here you can see my logcast
I start programm on my Xiomi Redmi Note 7
I think i must add some permission but i don't know which
2019-08-22 20:46:51.827 8668-8668/com.example.guessstar I/ample.guesssta: Late-enabling -Xcheck:jni
2019-08-22 20:46:52.171 8668-8668/com.example.guessstar I/Perf: Connecting to perf service.
2019-08-22 20:46:52.412 8668-8668/com.example.guessstar W/ample.guesssta: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
2019-08-22 20:46:52.414 8668-8668/com.example.guessstar W/ample.guesssta: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2019-08-22 20:46:52.543 8668-8746/com.example.guessstar I/DpmTcmClient: RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
2019-08-22 20:46:52.552 8668-8746/com.example.guessstar D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2019-08-22 20:46:52.555 8668-8746/com.example.guessstar W/System.err: java.io.IOException: Cleartext HTTP traffic to www.posh24.se not permitted
2019-08-22 20:46:52.555 8668-8746/com.example.guessstar W/System.err: at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:115)
2019-08-22 20:46:52.555 8668-8746/com.example.guessstar W/System.err: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:458)
2019-08-22 20:46:52.555 8668-8746/com.example.guessstar W/System.err: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:407)
2019-08-22 20:46:52.555 8668-8746/com.example.guessstar W/System.err: at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:244)
2019-08-22 20:46:52.556 8668-8746/com.example.guessstar W/System.err: at com.example.guessstar.MainActivity$DownloadContentStars.doInBackground(MainActivity.java:56)
2019-08-22 20:46:52.556 8668-8746/com.example.guessstar W/System.err: at com.example.guessstar.MainActivity$DownloadContentStars.doInBackground(MainActivity.java:46)
2019-08-22 20:46:52.556 8668-8746/com.example.guessstar W/System.err: at android.os.AsyncTask$2.call(AsyncTask.java:333)
2019-08-22 20:46:52.556 8668-8746/com.example.guessstar W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2019-08-22 20:46:52.556 8668-8746/com.example.guessstar W/System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
2019-08-22 20:46:52.556 8668-8746/com.example.guessstar W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2019-08-22 20:46:52.556 8668-8746/com.example.guessstar W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2019-08-22 20:46:52.556 8668-8746/com.example.guessstar W/System.err: at java.lang.Thread.run(Thread.java:764)
2019-08-22 20:46:52.641 8668-8749/com.example.guessstar I/Adreno: QUALCOMM build : cf57c9c, I1cb5c4d1cc
Build Date : 09/23/18
OpenGL ES Shader Compiler Version: EV031.25.03.01
Local Branch :
Remote Branch :
Remote Branch :
Reconstruct Branch :
2019-08-22 20:46:52.641 8668-8749/com.example.guessstar I/Adreno: Build Config : S L 6.0.7 AArch64
2019-08-22 20:46:52.646 8668-8749/com.example.guessstar I/Adreno: PFP: 0x005ff112, ME: 0x005ff066
2019-08-22 20:46:52.650 8668-8749/com.example.guessstar I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2019-08-22 20:46:52.650 8668-8749/com.example.guessstar I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2019-08-22 20:46:52.651 8668-8749/com.example.guessstar I/OpenGLRenderer: Initialized EGL, version 1.4
2019-08-22 20:46:52.651 8668-8749/com.example.guessstar D/OpenGLRenderer: Swap behavior 2
2019-08-22 20:47:00.094 8668-8697/com.example.guessstar I/ample.guesssta: ProcessProfilingInfo new_methods=942 is saved saved_to_disk=1 resolve_classes_delay=8000
I find how to fix it: you should just add this line of code: android:usesCleartextTraffic="true"
to your AndroidManifest.xml
<application
...
android:usesCleartextTraffic="true"
...>
Hope this information will help someone in future.
that website is down now. it was bought by someone else.
you can still find list of celebrities' on any other site, like Forbes.
I am struggling with a build error that I can't seem to find an answer to.
AGPBI: {"kind":"error","text":"error: attribute \u0027android:guid\u0027 not found.","sources":[{"file":"D:\\Work\\project\\app\\src\\main\\res\\layout\\activity_home.xml","position":{"startLine":4}}],"original":"","tool":"AAPT"}
It seems like it is repeated for each fragment. (About 30 more times)
I am not sure what to do now.
My logcat returned this
06-13 15:24:11.822 28459-28459/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
06-13 15:24:11.825 28459-28459/? D/AndroidRuntime: CheckJNI is OFF
06-13 15:24:11.964 28459-28459/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm
06-13 15:24:11.975 28459-28459/? I/art: System.exit called, status: 0
06-13 15:24:11.975 28459-28459/? I/AndroidRuntime: VM exiting with result code 0.
06-13 15:24:12.354 28478-28478/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
06-13 15:24:12.358 28478-28478/? D/AndroidRuntime: CheckJNI is OFF
06-13 15:24:12.496 28478-28478/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm
06-13 15:24:12.508 28478-28478/? I/art: System.exit called, status: 0
06-13 15:24:12.508 28478-28478/? I/AndroidRuntime: VM exiting with result code 0.
------- beginning of system
06-13 15:24:27.005 790-12370/? D/PowerManagerService: acquireWakeLockInternal: lock=875848314, flags=0x1, tag="CMWakeLock", ws=WorkSource{10011 com.google.android.gms}, uid=10011, pid=13763
updateWakeLockSummaryLocked: mWakefulness=Asleep, mWakeLockSummary=0x1
06-13 15:24:27.006 790-12370/? D/PowerManagerService: updateUserActivitySummaryLocked: mWakefulness=Asleep, mUserActivitySummary=0x0, nextTimeout=0 (76973684 ms ago)
updateDisplayPowerStateLocked: mDisplayReady=true, policy=0, mWakefulness=0, mWakeLockSummary=0x1, mUserActivitySummary=0x0, mBootCompleted=true, mScreenBrightnessBoostInProgress=false
06-13 15:24:27.009 790-12370/? D/PowerManagerService: Acquiring suspend blocker "PowerManagerService.WakeLocks".
06-13 15:24:27.009 790-12370/? D/PowerManagerNotifier: onWakeLockAcquired: flags=1, tag="CMWakeLock", packageName=com.google.android.gms, ownerUid=10011, ownerPid=13763, workSource=WorkSource{10011 com.google.android.gms}
06-13 15:24:27.055 13763-28314/? E/Auth: [GoogleAccountDataServiceImpl] getToken() -> BAD_AUTHENTICATION. Account: , App: com.google.android.gms, Service: oauth2:https://www.googleapis.com/auth/contextcontroller
gai: Long live credential not available.
at gaj.b(:com.google.android.gms#12685006#12.6.85 (020300-197041431):20)
at gaj.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):50)
at fyt.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):38)
at hpk.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):8)
at hpk.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):189)
at hok.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):2)
at hoh.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):17)
at hoh.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):6)
at cyz.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):25)
at cyz.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):82)
at fvp.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):6)
at fvo.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):2)
at fvo.e(:com.google.android.gms#12685006#12.6.85 (020300-197041431):6)
at fvo.d(:com.google.android.gms#12685006#12.6.85 (020300-197041431):1)
at fvm.b(:com.google.android.gms#12685006#12.6.85 (020300-197041431):1)
at opm.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):1)
at onz.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):3)
at drq.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):57)
at dmx.run(:com.google.android.gms#12685006#12.6.85 (020300-197041431):2)
at dmv.handleMessage(:com.google.android.gms#12685006#12.6.85 (020300-197041431):3)
at ouz.run(:com.google.android.gms#12685006#12.6.85 (020300-197041431):6)
at ovl.run(:com.google.android.gms#12685006#12.6.85 (020300-197041431):27)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at pbm.run(:com.google.android.gms#12685006#12.6.85 (020300-197041431))
at java.lang.Thread.run(Thread.java:818)
06-13 15:24:27.059 13763-28314/? W/Auth: [GetToken] GetToken failed with status code: BadAuthentication
06-13 15:24:27.083 13763-28314/? W/Auth: [GoogleAuthUtil] GoogleAuthUtil
06-13 15:24:27.083 13763-28314/? W/AuthSessionAuthenticato: Auth related exception is being ignored: BadAuthentication
06-13 15:24:27.100 13763-28314/? E/ctxmgr: [BaseServerTask]Server task (WriteInterestRecordTask) got error statusCode=-1.
com.android.volley.VolleyError: Unable to obtain auth token - is the device online?
at drq.a(:com.google.android.gms#12685006#12.6.85 (020300-197041431):65)
at dmx.run(:com.google.android.gms#12685006#12.6.85 (020300-197041431):2)
at dmv.handleMessage(:com.google.android.gms#12685006#12.6.85 (020300-197041431):3)
at ouz.run(:com.google.android.gms#12685006#12.6.85 (020300-197041431):6)
at ovl.run(:com.google.android.gms#12685006#12.6.85 (020300-197041431):27)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at pbm.run(:com.google.android.gms#12685006#12.6.85 (020300-197041431))
at java.lang.Thread.run(Thread.java:818)
06-13 15:24:27.108 13763-28314/? E/ctxmgr: [SyncServerInterestRecordsOperation]Failed WriteInterestRecord: network status=-1
06-13 15:24:27.109 790-805/? D/PowerManagerService: releaseWakeLockInternal: lock=875848314 [CMWakeLock], flags=0x0
06-13 15:24:27.109 790-805/? D/PowerManagerNotifier: onWakeLockReleased: flags=1, tag="CMWakeLock", packageName=com.google.android.gms, ownerUid=10011, ownerPid=13763, workSource=WorkSource{10011 com.google.android.gms}
06-13 15:24:27.109 790-805/? D/PowerManagerService: updateWakeLockSummaryLocked: mWakefulness=Asleep, mWakeLockSummary=0x0
06-13 15:24:27.110 790-805/? D/PowerManagerService: updateUserActivitySummaryLocked: mWakefulness=Asleep, mUserActivitySummary=0x0, nextTimeout=0 (76973788 ms ago)
updateDisplayPowerStateLocked: mDisplayReady=true, policy=0, mWakefulness=0, mWakeLockSummary=0x0, mUserActivitySummary=0x0, mBootCompleted=true, mScreenBrightnessBoostInProgress=false
Releasing suspend blocker "PowerManagerService.WakeLocks".
Turns out that I renamed all of my android:id attributes to 'guid' and because its not an issue that happens often I couldn't find the issue online