![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 CYL ![]()
![]() |
我的gradle: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion '23.0.2' defaultConfig { applicationId "com.taidamedical_drug_search_hd" useLibrary 'org.apache.http.legacy' compileSdkVersion "Google Inc.:Google APIs:23" minSdkVersion 10 targetSdkVersion 23 compileOptions { sourceCompatibility JavaVersion.VERSION_1_5 targetCompatibility JavaVersion.VERSION_1_5 } } buildTypes { release { minifyEnabled true proguardFiles 'proguard.cfg' } } } dependencies { //compile 'com.google.android.gms:play-services-maps:9.0.0' //compile 'com.android.support:support-v4:24.0.0' compile 'com.android.support:support-v4:23.0.0' compile 'com.google.android.gms:play-services:9.2.0' compile 'com.google.android.gms:play-services-fitness:9.2.0' compile 'com.google.android.gms:play-services-wearable:9.2.0' compile 'com.google.android.gms:play-services-maps:9.2.0' compile 'com.google.android.gms:play-services-ads:9.2.0' compile 'com.google.android.gms:play-services-auth:9.2.0' compile 'com.google.android.gms:play-services-gcm:9.2.0' compile 'com.rmtheis:tess-two:6.0.2' } 以下是Instrumentation.java出錯的import import android.os.PerformanceCollector; import android.os.ServiceManager; import android.view.IWindowManager; import com.android.internal.content.ReferrerIntent; 顯示都是os.後面沒有PerformanceCollector之類的 當初測試時編譯有過,放到手機上測試會閃退,用中斷點測試是哪裡出問題是發生在setContext(R.layout.main)這裡出錯,然後就發現Instrumentation.java這檔案,似乎有其他sdk內部的檔案如Activity.java也有import的問題 請問是否有人有知道這問題要怎麼解決嗎? |