Cannot resolve symbol (CyanogenMod system apps) - android

I am trying to build following CyanogenMod (can be found here) projects:
android_packages_apps_Contacts
android_packages_apps_ContactsCommon
android_packages_apps_Calendar
android_packages_providers_ContactsProvider
android_packages_providers_CalendarProvider
I'm using AndroidStudio. Downloaded and imported the projects.
Changing the Android SDK versions with no result.
The errors are as follows:
Error:(37, 33) java: package com.google.common.collect does not exist
Error:(23, 25) java: package com.android.vcard does not exist
Error:(134, 6) java: cannot find symbol
symbol: class VisibleForTesting
location: class com.android.contacts.common.util.SearchUtil
How can I build these projects? Do I need some other libriaries? Maybe I need to use CyanogenMod libriaries instead of Android SDK?
Here is the detailed info.

Related

Flutter Webview throws compiling error -ThreadedInputConnectionProxyAdapterView location: class InputAwareWebView

I am using Webview version
webview_flutter: ^2.0.6
The android studio while running throws this error and stop the build
Os Version
minSdkVersion 19
targetSdkVersion 30
A:\flutter.pub-cache\hosted\pub.dartlang.org\webview_flutter-2.0.6\android\src\main\java\io\flutter\plugins\webviewflutter\InputAwareWebView.java:31:
error: cannot find symbol private
ThreadedInputConnectionProxyAdapterView proxyAdapterView;
^ symbol: class ThreadedInputConnectionProxyAdapterView location: class InputAwareWebView
A:\flutter.pub-cache\hosted\pub.dartlang.org\webview_flutter-2.0.6\android\src\main\java\io\flutter\plugins\webviewflutter\InputAwareWebView.java:112:
error: cannot find symbol
new ThreadedInputConnectionProxyAdapterView(
^ symbol: class ThreadedInputConnectionProxyAdapterView location: class
InputAwareWebView Note: Some input files use or override a deprecated
API. Note: Recompile with -Xlint:deprecation for details. 2 errors
FAILURE: Build failed with an exception.
How to fix this error?
ThreadedInputConnectionProxyAdapterView has wrong extension .jav
just change it to .java until the flutter team release the fix.
Please refer to the github link for the issue
https://github.com/flutter/flutter/issues/82800
As Ravi stated, renaming the file extension to .java does the trick.
The file can be found at:
{your flutter folder}\.pub-cache\hosted\pub.dartlang.org\webview_flutter-2.0.6\android\src\main\java\io\flutter\plugins\webviewflutter\ThreadedInputConnectionProxyAdapterView.java

Need help to run a Github android project on an emulator on Android Studio

New to android dev.
I want to contribute to an open-source app that I use on a day to day basis but I'm struggling to run it on an emulator on Android Studio.
I've cloned it on my machine, clicked 'import project (Gradle, Eclipse,.. ADT)', selected my folder..etc..
I've created a virtual device and when I click on the triangle button, the project doesn't appear as an app on the phone?
There are some build errors which I suspect are the source of my problems but I have no idea how to resolve them.
Error:(11, 33) java: package android.support.v4.widget does not exist
Error:(28, 13) java: cannot find symbol
symbol: class SwipeRefreshLayout
location: class it.rignanese.leo.slimfacebook.MessagesActivity
_
Error:(18, 30) java: package android.support.v4.app does not exist
Error:(19, 34) java: package android.support.v4.content does not exist
Error:(96, 44) java: cannot find symbol
symbol: variable ContextCompat
location: class it.rignanese.leo.slimfacebook.PictureActivity
Error:(102, 13) java: cannot find symbol
symbol: variable ActivityCompat
location: class it.rignanese.leo.slimfacebook.PictureActivity
_
Error:(17, 33) java: package android.support.v4.widget does not exist
Error:(46, 13) java: cannot find symbol
symbol: class SwipeRefreshLayout
location: class it.rignanese.leo.slimfacebook.MainActivity
Googling on stackoverflow suggested adding a line to the dependencies section in build.gradle, but it already contains implementation 'com.android.support:support-v4:28.0.0' so the errors shouldn't be there, right?
Appreciate any advice.

Linking Error compiling/Building Delphi XE7 & XE10 Android App (SQLITE3)

I got a project from a former employee of our company.
It's an Android app written in Delphi XE7, using Android SDK 19 (4.4) and Sqlite3 for a local db on the smartphone.
For the moment we have a working copy on the smartphones, but I can't get it compiled/build on my pc. And we need a new version, because some things needs to change in our company logic.
I always get this fatal error:
"[DCC Fatal Error] Linker error code: 1 ($00000001)"
Before this fatal error, i have more than hundred other erros, all looking almost the same:
[DCC Error] C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: error: c:\\\\program files (x86)\\\\embarcadero\\\\studio\\\\15.0\\\\lib\\\\Android\\\\Release/libsqlite.a(sqlite3.o): multiple definition of 'sqlite3_aggregate_context'
Only the last 2 words of this errors are always different, so I assume this are all the different classes in sqlite3.
I tried a lot of things, from trying it in Xe7, XE8, XE10, different settings in the SDK Manager, ...
I made new projects and brought the files tp this new project, but I always got this same error.
My SDK Manager Settings are:
SDK:
Base Path: C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk
ZipAlign: C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk\tools\ZipAlign.exe
Android Location: C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk\tools\Android.bat
Adb Location: C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk\platform-tools\Adb.exe
Aapt location: C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk\build-tools\android-4.4\Aapt.exeµ
SDK Api-level locationC:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\adt-bundle-windows-x86-20131030\sdk\platforms\android-19
NDK:
Base Path: C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c
arm-linux-androideabi-ld.exe location: C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe
arm-linux-androideabi-strip.exe location: C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-strip.exe
gdbserver location: C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\prebuilt\android-arm\gdbserver\gdbserver
NDK Api Location: C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\platforms\android-14
C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\platforms\android-14\arch-arm\usr\lib
Delphi NDK Library Path: C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\platforms\android-14\arch-arm\usr\lib;C:\Users\Public\Documents\Embarcadero\Studio\15.0\PlatformSDKs\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi-v7a
Java:
KeyTool Location: C:\Program Files\Java\jdk1.7.0_25\bin\KeyTool.exe
Jarsigner Location: C:\Program Files\Java\jdk1.7.0_25\bin\JarSigner.exe
Can anyone give me a clue or a possible solution.
Thx in advance Timothy
I found the solution:
problem was that is used a SqliteUniProvider and in an other file there was still a dbxsqlite in the uses clause.
From the moment I commented the second one (dbxsqlite) out, the linking error dissapeared while compiling/building.

the imported project does not work in android studio

I just downloaded the https://github.com/baugarten/Android-Image-Edit from git hub but when i import project i have a lot of errors.i think i should import the library's but i don't know which one
these are some errors
Error:(7, 27) error: package org.apache.sanselan does not exist
Error:(60, 22) error: package com.google.ads does not exist
Error:(136, 13) error: cannot find symbol class AdView
Error:(179, 40) error: package AdSize does not exist
Error:(666, 46) error: cannot find symbol variable ExifTagConstants
The errors like "cannot find symbol" is because this class is not found on your repository. Find and add them.
The errors like "...does not exist" is because you should import these libraries into your project.

Error:(3, 17) java: package org.junit does not exist- intellij

I recently started using IntelliJ to build my android application project. I imported my sherlock library as a module and added the dependency to my project. However when I try to rebuild my project to check any errors I get a lines of 10 errors like this:
Error:(3, 17) java: package org.junit does not exist
Error:(4, 24) java: package org.junit.runner does not exist
Error:(5, 23) java: package org.robolectric does not exist
Error:(7, 38) java: package org.fest.assertions.api does not exist
Error:(7, 1) java: static import only from classes and interfaces
Error:(9, 2) java: cannot find symbol
symbol: class RunWith
Error:(11, 6) java: cannot find symbol
symbol: class Test
location: class com.actionbarsherlock.internal.ResourcesCompatTest
Error:(13, 20) java: cannot find symbol
symbol: method cleanActivityName(java.lang.String,java.lang.String)
location: class com.actionbarsherlock.internal.ResourcesCompatTest
Error:(15, 20) java: cannot find symbol
symbol: method cleanActivityName(java.lang.String,java.lang.String)
location: class com.actionbarsherlock.internal.ResourcesCompatTest
Error:(17, 19) java: cannot find symbol
symbol: method cleanActivityName(java.lang.String,java.lang.String)
location: class com.actionbarsherlock.internal.ResourcesCompatTest
looks like the junit.jar is missing in your classpath. Add it and it should work.
you can check if the plugin is installed if it is. it is just matter of adding it to class path you can do it automatically by selecting the junit word and then press on the inspection left side yellow bulb choose "add junit to classpath"
Adding below line in build.gradle solved the problem...
compile 'com.android.support.test:runner:0.5'

Categories

Resources