คำถามติดแท็ก android-studio-2.2

7
วิธีที่ไม่รองรับ: AndroidProject.getPluginGeneration () ในขณะที่รันโปรเจ็กต์
ฉันพยายามเรียกใช้โครงการด้วย Android Studio 2.2 แต่ได้รับข้อผิดพลาดนี้ Unsupported method: AndroidProject.getPluginGeneration(). The version of Gradle you connect to does not support that method. ฉันใช้ ButterKnife 8.4.0 แอพของฉัน gradle.file: buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.0' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' } } ไฟล์ Gradle โมดูลของฉัน: apply plugin: 'com.android.application' apply plugin: 'android-apt' android { …

7
คำเตือน: อย่าวางคลาสบริบทของ Android ในช่องคงที่ นี่คือการรั่วไหลของหน่วยความจำ (และหยุดการรันทันทีด้วย)
Android Studio: อย่าวางคลาสบริบทของ Android ในช่องคงที่ นี่คือการรั่วไหลของหน่วยความจำ (และหยุดการรันทันทีด้วย) ดังนั้น 2 คำถาม: # 1 คุณจะเรียก a startServiceจากวิธีการคงที่โดยไม่มีตัวแปรคงที่สำหรับบริบทได้อย่างไร? # 2 คุณส่ง localBroadcast จากวิธีการคงที่ (เหมือนกัน) ได้อย่างไร? ตัวอย่าง: public static void log(int iLogLevel, String sRequest, String sData) { if(iLogLevel > 0) { Intent intent = new Intent(mContext, LogService.class); intent.putExtra("UPDATE_MAIN_ACTIVITY_VIEW", "UPDATE_MAIN_ACTIVITY_VIEW"); mContext.startService(intent); } } หรือ Intent …
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.