5,603,729 Members 37,269 Now Online
XDA Developers Android and Mobile Development Forum

Error compiling Omni-ROM

Tip us?
 
lagloose
Old
#1  
lagloose's Avatar
Senior Member - OP
Thanks Meter 2912
Posts: 683
Join Date: Feb 2008

 
DONATE TO ME
Default Error compiling Omni-ROM

Got the following error while compiling:

target Java: KeyChain (/ubhome/theo/android/omnirom/out/target/common/obj/APPS/KeyChain_intermediates/classes)
target Java: LiveWallpapers (/ubhome/theo/android/omnirom/out/target/common/obj/APPS/LiveWallpapers_intermediates/classes)
packages/apps/CertInstaller/src/com/android/certinstaller/CertInstallerMain.java:88: cannot find symbol
symbol : variable EXTRA_SHOW_ADVANCED
location: class android.provider.DocumentsContract
openIntent.putExtra(DocumentsContract.EXTRA_SHOW_A DVANCED, true);
^
Note: packages/apps/CertInstaller/src/com/android/certinstaller/CertInstaller.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

Any ideas where the problem is ?

Greetz
like my work ? Press Thanks button.
 
chasmodo
Old
#2  
chasmodo's Avatar
Senior Member
Thanks Meter 37759
Posts: 11,618
Join Date: Dec 2011
Location: Novi Sad

 
DONATE TO ME
Open /frameworks/base/core/java/android/provider/DocumentsContract.java, go to line #86 and check if it is like this:

Code:
public static final String EXTRA_SHOW_ADVANCED = "android.content.extra.SHOW_ADVANCED";
If not, you have either data corruption due to forced system reboob, power outage or similar, or you have a bad cherry pick.
If you have tried to cherry pick the popular Multi-widow™, you are out of luck: it breaks the build today and will continue to do so
until someone does a rebase..

In either case, rm -rf your /frameworks and /.repo/projects/frameworks, then resync, check again DocumentsContract.java's line 86
and get the build rolling if everything's OK.
 
mithun46
Old
#3  
mithun46's Avatar
Recognized Contributor
Thanks Meter 1633
Posts: 1,229
Join Date: Oct 2012
Location: ▒▅|▆|█|▆|▅▒

 
DONATE TO ME
Quote:
Originally Posted by chasmodo View Post
If you have tried to cherry pick the popular Multi-widow™, you are out of luck: it breaks the build today and will continue to do so
until someone does a rebase..
Not anymore

https://gerrit.omnirom.org/#/c/1510/
If you consider my efforts worthwhile then Donate or Thank me
 
lagloose
Old
#4  
lagloose's Avatar
Senior Member - OP
Thanks Meter 2912
Posts: 683
Join Date: Feb 2008

 
DONATE TO ME
Quote:
Originally Posted by chasmodo View Post
Open /frameworks/base/core/java/android/provider/DocumentsContract.java, go to line #86 and check if it is like this:

Code:
public static final String EXTRA_SHOW_ADVANCED = "android.content.extra.SHOW_ADVANCED";
If not, you have either data corruption due to forced system reboob, power outage or similar, or you have a bad cherry pick.
If you have tried to cherry pick the popular Multi-widow™, you are out of luck: it breaks the build today and will continue to do so
until someone does a rebase..

In either case, rm -rf your /frameworks and /.repo/projects/frameworks, then resync, check again DocumentsContract.java's line 86
and get the build rolling if everything's OK.
Yap, you're right...
Seems that for some reason have data corruption. Will completely refetch sources and try again...

Thanx...
like my work ? Press Thanks button.
 
lagloose
Old
(Last edited by lagloose; 12th December 2013 at 10:05 AM.) Reason: checking for further problems....
#5  
lagloose's Avatar
Senior Member - OP
Thanks Meter 2912
Posts: 683
Join Date: Feb 2008

 
DONATE TO ME
And the next one after refetch of sources....

target thumb C++: third_party_WebKit_Source_web_webkit_gyp <= external/chromium_org/third_party/WebKit/Source/web/DOMUtilitiesPrivate.cpp
target thumb C++: third_party_WebKit_Source_web_webkit_gyp <= external/chromium_org/third_party/WebKit/Source/web/DatabaseObserver.cpp
frameworks/base/core/java/com/android/internal/view/CheckableLinearLayout.java:48: cannot find symbol
symbol : variable check
location: class com.android.internal.R.id
mCheckBox = (CheckBox) findViewById(R.id.check);
^
target thumb C++: third_party_WebKit_Source_web_webkit_gyp <= external/chromium_org/third_party/WebKit/Source/web/DateTimeChooserImpl.cpp
target thumb C++: third_party_WebKit_Source_web_webkit_gyp <= external/chromium_org/third_party/WebKit/Source/web/DeviceOrientationClientProxy.cpp
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Greetz

Temporary commented out to see if it is the only problem. Now continue compiling...

EDIT2:

after a lot of frustrating compilation errors, i finally found the problem. Beside making sure that all 'java' components point to JDK6, this is also necessary for 'config.jar'. So check this with:

$ sudo update-alternatives --config jar

and select the jar tool provided by JDK6 instead of other jar tools like fastjar or openjdk jar.
like my work ? Press Thanks button.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes