2017-06-13 15 views
15

Tạo ứng dụng trong Android Studio. Trong logcat, tôi nhận được hiển thị vô hạn:Android Studio, Locat hiển thị vô hạn "I/art: Enter while loop.", Ngay cả khi chạy Hoạt động trống

"Tôi/nghệ thuật: Nhập vòng lặp while".

Ứng dụng hoạt động như một nét duyên dáng nhưng nó vẫn trông kỳ lạ. Trên Google tôi không thể tìm thấy bất cứ điều gì và ở đây trên stack tôi tìm thấy một tài liệu tham khảo với một tình hình rất cụ thể và một giải pháp rất cụ thể.

Vấn đề là trong trường hợp của tôi, nó thậm chí còn xuất hiện khi tôi chỉ chạy một 'hoạt động trống' trên điện thoại của mình.

Hiện đang sử dụng: API 19: Android 4.4 (KitKat) nhưng cũng đã thử trên API cao hơn.

Nếu cần bất kỳ tệp nào khác (gradle/manifest), hãy cho tôi biết, hy vọng ai đó có thể cho tôi biết điều gì đang diễn ra (hoặc có thể điều này thậm chí bình thường?).

Cảm ơn.

tập JAVA

package com.example.xxxxxxx.myapplication; 

import android.support.v7.app.AppCompatActivity; 
import android.os.Bundle; 

public class MainActivity extends AppCompatActivity { 

    @Override 
    protected void onCreate(Bundle savedInstanceState) { 
     super.onCreate(savedInstanceState); 
     setContentView(R.layout.activity_main); 
    } 
} 

tập tin XML

<?xml version="1.0" encoding="utf-8"?> 
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    xmlns:tools="http://schemas.android.com/tools" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    tools:context="com.example.xxxxxxx.myapplication.MainActivity"> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="Hello World!" 
     app:layout_constraintBottom_toBottomOf="parent" 
     app:layout_constraintLeft_toLeftOf="parent" 
     app:layout_constraintRight_toRightOf="parent" 
     app:layout_constraintTop_toTopOf="parent" /> 

</android.support.constraint.ConstraintLayout> 

Logcat

W/System: ClassLoader referenced unknown path: /data/app/com.example.xxxxxxx.myapplication-1/lib/arm 
I/InstantRun: starting instant run server: is main process 
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable 
I/art: Enter while loop. 
V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = null, this = [email protected][] 
D/WindowClient: Add to mViews: [email protected][MainActivity], this = [email protected] 
D/OpenGLRenderer: Dumper init 2 threads <0xa132b480> 
D/OpenGLRenderer: <com.example.xxxxxxx.myapplication> is running. 
D/OpenGLRenderer: CanvasContext() 0x9fdc1800 
D/GraphicBuffer: register, handle(0x9fd86870) (w:576 h:576 s:576 f:0x1 u:0x000100) 
D/ViewRootImpl[MainActivity]: hardware acceleration is enabled, this = ViewRoot{c7462d3 com.example.xxxxxxx.myapplication/com.example.xxxxxxx.myapplication.MainActivity,ident = 0} 
V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{c7462d3 com.example.xxxxxxx.myapplication/com.example.xxxxxxx.myapplication.MainActivity,ident = 0}, this = [email protected][MainActivity] 
D/Surface: Surface::allocateBuffers(this=0x94d6d700) 
D/OpenGLRenderer: CanvasContext() 0x9fdc1800 initialize window=0x94d6d700, title=com.example.xxxxxxx.myapplication/com.example.xxxxxxx.myapplication.MainActivity 
I/OpenGLRenderer: Initialized EGL, version 1.4 
D/OpenGLRenderer: Swap behavior 1 
D/OpenGLRenderer: Created EGL context (0xaa2bdb80) 
D/OpenGLRenderer: ProgramCache.init: enable enhancement 1 
I/OpenGLRenderer: Get disable program binary service property (0) 
I/OpenGLRenderer: Initializing program atlas... 
I/ProgramBinary/Service: ProgramBinaryService client side disable debugging. 
I/ProgramBinary/Service: ProgramBinaryService client side disable binary content debugging. 
D/ProgramBinary/Service: BpProgramBinaryService.getReady 
D/ProgramBinary/Service: BpProgramBinaryService.getProgramBinaryData 
I/OpenGLRenderer: Program binary detail: Binary length is 91876, program map length is 124. 
I/OpenGLRenderer: Succeeded to mmap program binaries. File descriptor is 65, and path is /dev/ashmem. 
I/OpenGLRenderer: No need to use file discriptor anymore, close fd(65). 
D/OpenGLRenderer: Initializing program cache from 0x0, size = -1 
I/[MALI][Gralloc]: dlopen libsec_mem.so fail 
D/Surface: Surface::connect(this=0x94d6d700,api=1) 
W/libEGL: [ANDROID_RECORDABLE] format: 1 
D/Surface: Surface::setBufferCount(this=0x94d6d700,bufferCount=4) 
W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView 
V/InputMethodManager: onWindowFocus: null softInputMode=288 first=true flags=#81810100 
D/GraphicBuffer: register, handle(0x9fd86bf0) (w:480 h:800 s:480 f:0x1 u:0x000f02) 
D/OpenGLRenderer: CacheTexture 3 upload: x, y, width height = 0, 0, 1024, 155 
D/OpenGLRenderer: ProgramCache.generateProgram: 0 
D/OpenGLRenderer: ProgramCache.generateProgram: 34359738371 
D/OpenGLRenderer: ProgramCache.generateProgram: 240518168576 
I/art: Enter while loop. 
I/art: Enter while loop. 
I/art: Enter while loop. 
I/art: Enter while loop. 
I/art: Enter while loop. 
I/art: Enter while loop. 
I/art: Enter while loop. 
I/art: Enter while loop. 
I/art: Enter while loop. 
I/art: Enter while loop. 
I/art: Enter while loop. 
I/art: Enter while loop. 
.... etc. 

MANIFEST

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.example.xxxxxxx.myapplication"> 

    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:roundIcon="@mipmap/ic_launcher_round" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme"> 
     <activity android:name=".MainActivity"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
    </application> 

</manifest> 

GRADLE

+0

Đính kèm tệp kê khai và tệp gradle – Raj

+0

Xin chào Raj, tôi đã thêm người đó. và gradle, bạn nghĩ gì về nó? – tjtdroid

+0

Tôi đã tìm kiếm nguồn ART và chỉ những nơi bạn có thể tìm thấy "while loop" là trong các thử nghiệm và JFuzz, công cụ để tạo các chương trình thử nghiệm. Có vẻ kỳ lạ. – charlag

Trả lời

0

Có vẻ như đó là một số loại thông báo gỡ lỗi những gì còn lại trong Android Studio hoặc một số phần phụ thuộc mà phần mềm của bạn có.

Bạn nên cố gắng cập nhật mọi thư viện, Android Studio và các thành phần của nó thành phiên bản mới nhất và điều đó sẽ giải quyết được vấn đề.

Các vấn đề liên quan