WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

Cannot compile develop branch in android studio

Open strubul opened this issue 12 years ago • 10 comments

Hello there, I get the following error in android studio during compilation:

:compileBetagroupJava/home/strubul/WordPress-Android/src/org/xmlrpc/android/ApiHelper.java:412: error: cannot find symbol
    public static class SyncMediaLibraryTask extends HelperAsyncTask<List<?>, Void, Integer> {
                                                                     ^
  symbol:   class List
  location: class ApiHelper

I just have forked and cloned the branch and followed the instructions in the handbook:

strubul@ubuntu:~/WordPress-Android$ git status
 On branch develop
nothing to commit (working directory clean)

Am I doing something wrong? Any help would be appreciated.

strubul avatar Jan 13 '14 17:01 strubul

I think you should be running 'debug' instead of 'betagroup'. Click 'Build Variants' and change it to Debug. screen shot 2014-01-14 at 10 43 30 am 1

roundhill avatar Jan 14 '14 01:01 roundhill

@daniloercoli About this issue, we should rename our internal beta build like "zbeta" to avoid more confusion about the default built being the first in alphabetical order in Android Studio.

maxme avatar Jan 14 '14 01:01 maxme

@maxme OK, will rename the "betagroup" buildType to "zbetagroup".

daniloercoli avatar Jan 14 '14 08:01 daniloercoli

I chose "debug" and run but the problem still remains. (And a related question: in pull requests what should the build type be ? Thanks.)

image

strubul avatar Jan 14 '14 14:01 strubul

I have the same problem building wordpress 2.6 RC2 for F-Droid:

:compileReleaseJava/home/ant1/Projects/fdroid/fdroiddata/build/org.wordpress.android/src/org/xmlrpc/android/ApiHelper.java:412: error: cannot find symbol
    public static class SyncMediaLibraryTask extends HelperAsyncTask<List<?>, Void, Integer> {
                                                                     ^
  symbol:   class List
  location: class ApiHelper

aelmahmoudy avatar Jan 24 '14 06:01 aelmahmoudy

@strubul @aelmahmoudy can you please pull the current version from the develop branch and check if the fix is working in your environment?

maxme avatar Jan 27 '14 10:01 maxme

I've applied the diff from commit 2bbe830 to the 2.6-rc-2 tag, and it built successfully

aelmahmoudy avatar Jan 27 '14 12:01 aelmahmoudy

@aelmahmoudy great, thanks!

maxme avatar Jan 27 '14 12:01 maxme

@maxme No error for me either..

strubul avatar Jan 30 '14 16:01 strubul

Latest build on f-droid is version 2.7.1 from 12 April 2014. Perhaps one of the people involved in that build could please revive and update that?

PanderMusubi avatar Dec 19 '16 23:12 PanderMusubi