2017/5/15

舊版 android (2.3) 使用openjdk..

build 的時候,出現 Error:
cts/apps/CtsVerifier/src/com/android/cts/verifier/PassFailButtons.java:191: 
onCreateDialog(int,android.os.Bundle) in android.app.Activity cannot implement onCreateDialog(int,android.os.Bundle) 
in com.android.cts.verifier.PassFailButtons.PassFailActivity; 
attempting to assign weaker access privileges; was public
    private static <T extends android.app.Activity & PassFailActivity>
                    ^
1 error
m



所以..參考4.4 的...
diff --git a/apps/CtsVerifier/src/com/android/cts/verifier/PassFailButtons.java b/apps/CtsVerifier/src/com/android/cts/verifier/PassFailButtons.java
index 9991b9d..9bd0665 100644
--- a/apps/CtsVerifier/src/com/android/cts/verifier/PassFailButtons.java
+++ b/apps/CtsVerifier/src/com/android/cts/verifier/PassFailButtons.java
@@ -76,8 +76,6 @@ public class PassFailButtons {
 
         Button getPassButton();
 
-        /* Added to the interface just to make sure it isn't forgotten in the implementations. */
-        Dialog onCreateDialog(int id, Bundle args);
 
         /**
          * Returns a unique identifier for the test.  Usually, this is just the class name.

沒有留言:

張貼留言