Error in R.java when building Punya

I am trying to build the Punya project and I am receiving the following error in the PlayApp when building with ant. I followed the manual setup instructions and am stuck at compiling with ant in the appinventor folder

PlayApp:
...
[java] Annotation processing got disabled, since it requires a 1.6 compliant JVM
     [java] ----------
     [java] 1. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 1)
     [java]     /* AUTO-GENERATED FILE.  DO NOT MODIFY.
     [java]     ^
     [java] The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
     [java] ----------
     [java] 2. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 10)
     [java]     public final class R {
     [java]                        ^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 3. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 11)
     [java]     public static final class anim {
     [java]                               ^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 4. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 40)
     [java]     public static final class attr {
     [java]                               ^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 5. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 2568)
     [java]     public static final class bool {
     [java]                               ^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 6. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 2573)
     [java]     public static final class color {
     [java]                               ^^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 7. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 2663)
     [java]     public static final class dimen {
     [java]                               ^^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 8. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 2779)
     [java]     public static final class drawable {
     [java]                               ^^^^^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 9. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 2902)
     [java]     public static final class id {
     [java]                               ^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 10. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 3058)
     [java]     public static final class integer {
     [java]                               ^^^^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 11. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 3065)
     [java]     public static final class layout {
     [java]                               ^^^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 12. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 3107)
     [java]     public static final class mipmap {
     [java]                               ^^^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 13. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 3112)
     [java]     public static final class string {
     [java]                               ^^^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 14. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 3187)
     [java]     public static final class style {
     [java]                               ^^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 15. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 3541)
     [java]     public static final class xml {
     [java]                               ^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] 16. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/R.java (at line 3545)
     [java]     public static final class styleable {
     [java]                               ^^^^^^^^^
     [java] Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
     [java] ----------
     [java] ----------
     [java] 17. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/Manifest.java (at line 1)
     [java]     /* AUTO-GENERATED FILE.  DO NOT MODIFY.
     [java]     ^
     [java] The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
     [java] ----------
     [java] 18. ERROR in /tmp/1707844253142_0.8160913929347715-0/build/generated/src/edu/mit/appinventor/punya/aicompanion3/Manifest.java (at line 10)
     [java]     public final class Manifest {
     [java]                        ^^^^^^^^
...
BUILD FAILED
/mnt/c/Users/capuzb/research/punya/appinventor/build.xml:21: The following error occurred while executing this line:
/mnt/c/Users/capuzb/research/punya/appinventor/buildserver/build.xml:195: Java returned: 1

Total time: 17 minutes 13 seconds

Currently the Punya sources only compile with Java 8. I have been working on merging them with the App Inventor sources to pull in the Java 11 support. You will need to downgrade temporarily to Java 8 and then rebuild the system until I push the merged sources up to GitHub.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.