no member named 'asInterface' in 'android::IGraphicBufferProducer' - LineageOS Questions & Answers

Hello, I'm trying to build android 9/lineageos 16.0 and I'm encountering the following error:
Code:
frameworks/native/libs/binder/include/binder/IInterface.h:44:23: error: no member named 'asInterface' in 'android::IGraphicBufferProducer'
return INTERFACE::asInterface(obj);
~~~~~~~~~~~^
Link to the full log: https://pastebin.com/2p3d5br1
Any help is appreciated.

Related

[Q] (Help) CM11 compiling errors

Hello! I'm new building a ROM and I have a lot of issues with the compilation of CM11, a lot of these has been fixed with a few workarounds in the source code, but I'm getting an error with the headers, exactly with the file Flattenable.h
The problem is that the "guard" of the headers includes only once the header Flattenable.h for one of the needed headers but not for the rest of headers that require the same header Flattenable.h and I get this error:
target thumb C++: libandroid <= frameworks/base/native/android/native_window.cpp
In file included from frameworks/native/include/ui/Rect.h:22:0,
from frameworks/native/include/ui/Region.h:25,
from system/core/include/utils/Flattenable.h:26,
from frameworks/native/include/ui/Fence.h:26,
from frameworks/native/include/gui/IGraphicBufferProducer.h:28,
from frameworks/native/include/gui/Surface.h:20,
from frameworks/base/native/android/native_window.cpp:21:
frameworks/native/include/ui/Point.h:29:41: error: expected template-name before '<' token
frameworks/native/include/ui/Point.h:29:41: error: expected '{' before '<' token
frameworks/native/include/ui/Point.h:29:41: error: expected unqualified-id before '<' token
frameworks/base/native/android/native_window.cpp:84:1: error: expected '}' at end of input
make: *** [/home/richy/Escritorio/Development/CM-11/out/target/product/hwmt1_u06/obj/SHARED_LIBRARIES/libandroid_intermediates/native_window.o] Error 1
the error is because the "template-name" has been defined in Flattenable.h but the "guard" disable the #include of the file Point.h because this header has been included previusly on the file Fence.h
Someone knows a "fix" for this problem?
I'm compiling in Ubuntu 14.04
Excuse my poor english :silly:
I found the reason of this
Thanks but i find that I have added the next line to flattenable.h and I don't remember when :/ but... it was there haha
#include <ui/Region.h>
and I search the file on another site and this include wasn't here hahaha thanks =):silly:

who can help me? anyone can?

in CM12.1 for Xiao mi Read Mi 1s, now I have the error as bllow:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
who can help me?
Recommendation
Hello,
to get an answer you should at least:
Name the thread appropriately
Elaborate when you are getting this error - after which step and procedure
Put code into
Code:
environment
[/LIST]
jiang18109913 said:
in CM12.1 for Xiao mi Read Mi 1s, now I have the error as bllow:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
who can help me?
Click to expand...
Click to collapse
I think u might ve installed 64 bit os. I ve no idea. Just tell me when this error occur. Best way try changing ur rom. Thats it. This might be helpful
http://forum.xda-developers.com/redmi-1s/general/guide-unbricking-redmi-1s-bricked-t2905426
Is it resolved ? How ?

can't deploy my AppBuilder project on android device

Hi,
I have to test my hybrid mobile application on my android device,I have selected "USB debugging" in my phone and I have selected the "Unknown sources" option,but when I try to deploy my application in my mobile I get this error:
Code:
Building package: [D:\WebMobile\test\backupsProjetWebMobile2\KendoUITabStrip1\obj\Debug\MyProjet.zip]
Project files uploaded to the cloud.
Sending build request for project MyProjet with parameters ProjectTypeGuids={070BCB52-5A75-4F8C-A973-144AF0EAFCC9}
Platform=Android
Configuration=Debug
LiveSyncToken=5uW/86s7080iMfWs0yNn+vJIKWo6n1qh4Lpa8kEnoUNFIaJOOQSDimQ9e0N6ELxXgt2bTOb/Xp6eRqCttuaoxQCzlLku533tlF1hvwrKPpxPeX/CfV/aGFN8Wr6MJl4D.
C:\Users\Client\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\zc3hmmck.xbh\Targets\Build.targets(189,3): error : Server build failed. Server output: Project "MyProjet.tmp.proj" (default targets):
android Build Tooling revision 2015.11.03.5r
Warning: Failed to install 'cordova-plugin-mapbox':Error: Variable(s) missing: ACCESS_TOKEN
at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/cordova-lib/cordova-lib/src/plugman/install.js:324:23
at _fulfilled (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:749:13)
at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:557:44
at flush (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:419:13)
Warning: Variable(s) missing: ACCESS_TOKEN
Warning: /home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189
Warning: throw Error("exit code: " + code);
^
Warning: Error: exit code: 1
at Error (<anonymous>)
at ChildProcess.<anonymous> (/home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189:14)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:810:12)
Error: Build failed during execution
Error: 'Build failed with error code 8'
Done building project "MyProjet.tmp.proj" -- FAILED.
.
Done building project "MyProjet.iceproj" -- FAILED.
Build FAILED.
I work with Telerik-AppBuilder visual Studio 2015 extension(kendo-ui) my android phone is Samsung Galaxy Star Duos GT-S7262 version 4.1.2 any help please and thanks
kalimambou said:
Hi,
I have to test my hybrid mobile application on my android device,I have selected "USB debugging" in my phone and I have selected the "Unknown sources" option,but when I try to deploy my application in my mobile I get this error:
Code:
Building package: [D:\WebMobile\test\backupsProjetWebMobile2\KendoUITabStrip1\obj\Debug\MyProjet.zip]
Project files uploaded to the cloud.
Sending build request for project MyProjet with parameters ProjectTypeGuids={070BCB52-5A75-4F8C-A973-144AF0EAFCC9}
Platform=Android
Configuration=Debug
LiveSyncToken=5uW/86s7080iMfWs0yNn+vJIKWo6n1qh4Lpa8kEnoUNFIaJOOQSDimQ9e0N6ELxXgt2bTOb/Xp6eRqCttuaoxQCzlLku533tlF1hvwrKPpxPeX/CfV/aGFN8Wr6MJl4D.
C:\Users\Client\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\zc3hmmck.xbh\Targets\Build.targets(189,3): error : Server build failed. Server output: Project "MyProjet.tmp.proj" (default targets):
android Build Tooling revision 2015.11.03.5r
Warning: Failed to install 'cordova-plugin-mapbox':Error: Variable(s) missing: ACCESS_TOKEN
at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/cordova-lib/cordova-lib/src/plugman/install.js:324:23
at _fulfilled (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:749:13)
at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:557:44
at flush (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:419:13)
Warning: Variable(s) missing: ACCESS_TOKEN
Warning: /home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189
Warning: throw Error("exit code: " + code);
^
Warning: Error: exit code: 1
at Error (<anonymous>)
at ChildProcess.<anonymous> (/home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189:14)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:810:12)
Error: Build failed during execution
Error: 'Build failed with error code 8'
Done building project "MyProjet.tmp.proj" -- FAILED.
.
Done building project "MyProjet.iceproj" -- FAILED.
Build FAILED.
I work with Telerik-AppBuilder visual Studio 2015 extension(kendo-ui) my android phone is Samsung Galaxy Star Duos GT-S7262 version 4.1.2 any help please and thanks
Click to expand...
Click to collapse
Check this out ?
http://stackoverflow.com/questions/23513768/command-line-failed-with-exit-code-8-in-phonegap-cordova

Need help for compiling Cm13.0 source code.

Hi All,
I'm compiling cyanogenmod 13.0 for Redmi 1s and stuck at following errors.
Code:
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.
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/classes-jarjar.jar
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/classes.jar
target Java: qcmediaplayer (/home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes)
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes-jarjar.jar
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes.jar
Check package name for /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/classes.jar
Error: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar: unknown package name of class file org/codeaurora/camera/ExtendedFace.class
Error: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar: unknown package name of class file org/codeaurora/ims/qtiims/IQtiImsInterface$Stub$Proxy.class
Error: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes.jar: unknown package name of class file com/qualcomm/qcmedia/QCMediaPlayer$OnMPDAttributeListener.class
Error: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/classes.jar: unknown package name of class file com/quicinc/tcmiface/DpmTcmIface.class
make: *** [/home/sysadmin/Rahul/cm13.0/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp] Error 1
#### make failed to build some targets (08:30 (mm:ss)) ####
Can anyone help me to solve this errors?
Rahul Dhobi said:
Hi All,
I'm compiling cyanogenmod 13.0 for Redmi 1s and stuck at following errors.
Code:
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.
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/classes-jarjar.jar
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/classes.jar
target Java: qcmediaplayer (/home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes)
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes-jarjar.jar
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes.jar
Check package name for /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes.jar /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/classes.jar
Error: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar: unknown package name of class file org/codeaurora/camera/ExtendedFace.class
Error: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar: unknown package name of class file org/codeaurora/ims/qtiims/IQtiImsInterface$Stub$Proxy.class
Error: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes.jar: unknown package name of class file com/qualcomm/qcmedia/QCMediaPlayer$OnMPDAttributeListener.class
Error: /home/sysadmin/Rahul/cm13.0/out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/classes.jar: unknown package name of class file com/quicinc/tcmiface/DpmTcmIface.class
make: *** [/home/sysadmin/Rahul/cm13.0/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp] Error 1
#### make failed to build some targets (08:30 (mm:ss)) ####
Can anyone help me to solve this errors?
Click to expand...
Click to collapse
can you post complete log please.
although it seems like a upstream error, but yea a full log would be great
onano said:
can you post complete log please.
although it seems like a upstream error, but yea a full log would be great
Click to expand...
Click to collapse
Thanks for reply, please find attached log file.
Rahul Dhobi said:
Thanks for reply, please find attached log file.
Click to expand...
Click to collapse
why you're Using prebuilt kernel binary instead of source ?
and please post your local_manifest too
onano said:
why you're Using prebuilt kernel binary instead of source ?
and please post your local_manifest too
Click to expand...
Click to collapse
I'm using compressed source code from http://forum.xda-developers.com/android/software/sources-android-sources-highly-t3231109.
this source don't have .repo directory also I have again compiled with kernel source, please verify logs and steps I'm doing
Thanks.
Have you added Android-SDK to your path?
unknown package name of class file com/quicinc/tcmiface/DpmTcmIface.class
Rahul Dhobi said:
I'm using compressed source code from http://forum.xda-developers.com/android/software/sources-android-sources-highly-t3231109.
this source don't have .repo directory also I have again compiled with kernel source, please verify logs and steps I'm doing
Thanks.
Click to expand...
Click to collapse
Hi,
I am also getting same error.
Is the problem solved?
How to solve this error : unknown package name of class file com/quicinc/tcmiface/DpmTcmIface.class
SilverPearl said:
Hi,
I am also getting same error.
Is the problem solved?
How to solve this error : unknown package name of class file com/quicinc/tcmiface/DpmTcmIface.class
Click to expand...
Click to collapse
Same error here. Please help us
Aah found the soln. You need to revert some commits where you are getting the error.
Like, i had an error for apache-http. So i had to revert this:
https://github.com/HalogenOS/androi...mmit/7463c06adcd51d891fc294b90350562f9697ffe8
Noob part: Just revert commits with commit message " off the boot classpath" or something
Would help someone i guess
@SilverPearl @Rahul Dhobi
regalstreak said:
aah found the soln. You need to revert some commits where you are getting the error.
Like, i had an error for apache-http. So i had to revert this:
https://github.com/halogenos/androi...mmit/7463c06adcd51d891fc294b90350562f9697ffe8
noob part: Just revert commits with commit message " off the boot classpath" or something
would help someone i guess
@silverpearl @rahul dhobi
Click to expand...
Click to collapse
good job man helping ppl out
regalstreak said:
Aah found the soln. You need to revert some commits where you are getting the error.
Like, i had an error for apache-http. So i had to revert this:
https://github.com/HalogenOS/androi...mmit/7463c06adcd51d891fc294b90350562f9697ffe8
Noob part: Just revert commits with commit message " off the boot classpath" or something
Would help someone i guess
@SilverPearl @Rahul Dhobi
Click to expand...
Click to collapse
@regalstreak I am facing something similar. Could you help me out?
Exact error:
Code:
Error: /home/yeshwanthvshenoy/du/out/target/common/obj/JAVA_LIBRARIES/telephony-ext_intermediates/classes.jar: unknown package name of class file org/codeaurora/internal/IDepersoResCallback$Stub.class
Full log: http://pastebin.com/ixfVAV7i
Any idea?
yeshwanthvshenoy said:
@regalstreak I am facing something similar. Could you help me out?
Exact error:
Code:
Error: /home/yeshwanthvshenoy/du/out/target/common/obj/JAVA_LIBRARIES/telephony-ext_intermediates/classes.jar: unknown package name of class file org/codeaurora/internal/IDepersoResCallback$Stub.class
Full log: http://pastebin.com/ixfVAV7i
Any idea?
Click to expand...
Click to collapse
I assume that you've solved this. I was off xda. Sorry.
regalstreak said:
I assume that you've solved this. I was off xda. Sorry.
Click to expand...
Click to collapse
Hi. I'm having this error https://hastebin.com/udofahacok.scala some time ago when building AOSiP and AOSP Extended. Can you help me solve it? I have a trying time and I have not been able to. Sorry for my english

[SOLVED] Java Errors While compiling Nougat Custom Roms (Download Provider)

SOLVED: SEE POST #4 TO SEE HOW TO FIX IT
Hi I am getting some Java errors while compiling CrDroid rom for samsung s3 i747. Compiling is fine until It arrives at Download manager. I retried 5 times compiling this rom but had no success This is the first time building a rom.
I am using open jdk 1.8 and I have 8 GB RAM on my VM With Ubuntu Bionic Beaver
Code:
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadStorageProvider.java:326: The method setFilterByString(String) is undefined for the type DownloadManager.Query
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:150: COLUMN_DESTINATION cannot be resolved or is not a field
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:155: COLUMN_FILE_NAME_HINT cannot be resolved or is not a field
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1133: The method update(SQLiteDatabase, ContentValues, String, String[]) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1237: The method setStrictColumns(boolean) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1238: The method setStrictGrammar(boolean) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1316: The method delete(SQLiteDatabase, String, String[]) is undefined for the type SQLiteQueryBuilder
At the end, I get the Ninja Wrapper error 1.
I tried ninja wrapper disable but had no success.
EDIT: SEE THE FIX BELOW
alexenferman said:
Hi I am getting some Java errors while compiling CrDroid rom for samsung s3 i747. Compiling is fine until It arrives at Download manager. I retried 5 times compiling this rom but had no success This is the first time building a rom.
I am using open jdk 1.8 and I have 8 GB RAM on my VM With Ubuntu Bionic Beaver
Code:
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadStorageProvider.java:326: The method setFilterByString(String) is undefined for the type DownloadManager.Query
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:150: COLUMN_DESTINATION cannot be resolved or is not a field
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:155: COLUMN_FILE_NAME_HINT cannot be resolved or is not a field
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1133: The method update(SQLiteDatabase, ContentValues, String, String[]) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1237: The method setStrictColumns(boolean) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1238: The method setStrictGrammar(boolean) is undefined for the type SQLiteQueryBuilder
ERROR: /home/android/crDroid/packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java:1316: The method delete(SQLiteDatabase, String, String[]) is undefined for the type SQLiteQueryBuilder
At the end, I get the Ninja Wrapper error 1.
I tried ninja wrapper disable but had no success.
Click to expand...
Click to collapse
EDIT: I SKIPPED theese errors! I compiled the rom and it will be uploaded soon!
alexenferman said:
EDIT: I SKIPPED theese errors! I compiled the rom and it will be uploaded soon!
Click to expand...
Click to collapse
Hmmm, how did you do it, I have same error myself.
HOW TO FIX:
The fact is if you try to compile a nougat rom you might come across this error.
Looks like someone messed up the source code of the package Download Provider and Managed Provisionning from github.
My first solution was to skip the packages but in my rom the download manager would not work which would make the rom unusable for internet purposes.
My second solution and the best solution is to revert a few commits back (Downgrading the package sourcecode from Github)
You can download each of the packages (Older versions which work) Theese are for cm-14.1
Managed Provisionning: https://github.com/LineageOS/androi...tree/01eebf922cb5a6cef07e11631c9d0b82100509a3
Download Provider: https://github.com/LineageOS/androi...tree/21b5b3c3edd6dde44098aac75daa1f55d5a68f77
Download both zip files and extract them
Then open Terminal and type sudo nautilus
Go to your rom folder > Packages > Apps > ManagedProvisioning
and replace the managed provisioning folder contents with the folder contents that you downloaded called Managed Provisionning
Do the same thing with Download Provider
Go to your rom folder > Packages > Providers > DownloadProvider
and replace the DownloadProvider folder contents with the folder contents that you downloaded called DownloadProvider
Then you can compile peacefully your rom without any error!
If you don't understand something make sure to tell me!
Thank you. . I've got this error too while building AICP (also lineage-based) nougat
I've got this error while building AICP, dotOS and Ressurection Remix and guess I'll face this error with any custom rom other than lineage.

Categories

Resources