Unresolved referenced for androidx packages such as activity, appcompat, health, etc - flutter

Good day, why all my imports in androidx has unresolved reference? I'm using flutter and kotlin while working on method channels in Android Studio. Please see attached image below,
Unresolved references
Regarding my android>gradle.properties, I have these two enabled.
android.useAndroidX=true android.enableJetifier=true
Can someone help fixed this issue? I think this is in my configuration but I don't know how to fix it.
All imports should be working.

Related

Unresolved reference: xms. Huawei Xms adaption layer is not working

I'm trying to add a G+H solution for my app. I've done conversion from HMS toolkit. But after the conversion, it gives me error on xms imports also it's give me error regarding
Could not resolve all artifacts for configuration ':classpath'.
Could not find com.huawei.agconnect:agconnect-apms-plugin:1.5.1.300.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/huawei/agconnect/agconnect-apms-plugin/1.5.1.300/agconnect-apms-plugin-1.5.1.300.pom
- https://jcenter.bintray.com/com/huawei/agconnect/agconnect-apms-plugin/1.5.1.300/agconnect-apms-plugin-1.5.1.300.pom
- https://developer.huawei.com/repo/com/huawei/agconnect/agconnect-apms-plugin/1.5.1.300/agconnect-apms-plugin-1.5.1.300.pom
Required by:
project :
Possible solution:
Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
The problem may be due to your APM plugin. Try changing it to classpath 'com.huawei.agconnect:agconnect-apms-plugin:1.4.1.306' may solve your issue.
For Details,check Docs.
Please try the following solutions.
Make sure
Class path specified
classpath 'com.huawei.agconnect:agcp:1.2.1.301'
classpath 'com.huawei.agconnect:agconnect-apms-plugin:1.2.1.301'
Apply these plugins
apply plugin: 'com.huawei.agconnect'
apply plugin: 'com.huawei.agconnect.apms'

Some conflicting dependencies were found. The following dependency versions were modified:

Hello i am using unity 2018.4 and i have implemented Admob and Audience Network ads i am using this for a year there were no issues. but now when i resolve the dependencies i am getting a warring
Some conflicting dependencies were found.
The following dependency versions were modified:
com.facebook.android:audience-network-sdk:5.+ --> com.facebook.android:audience-network-sdk:+
com.google.android.gms:play-services-ads:18.3.0 --> com.google.android.gms:play-services-ads:+
It's not a proper answer but it might help you in overcoming the current issue.
Recently, FAN has added a new dependency at 6.0.0 which result in changing of adsetting values. you need to change some scripts.
But while resolving is complete you can place old arr file of facebook audience network, this way it can help you remove the error

Flutter Conflict: geolocator: ^5.1.4+1 and google_maps_flutter: ^0.5.21+7 generate dependency conflict

Currently I'm doing a Flutter application witch uses:
geolocator: ^5.1.4+1
google_maps_flutter: ^0.5.21+7
When I declare both dependencies in "pubspec.yaml" it get a conflict
"FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:preDebugBuild'.
Android dependency 'com.google.android.gms:play-services-tasks' has different version for the compile (16.0.1) and runtime (17.0.0) classpath. You should manually set the same version via DependencyResolution"
I've tryied also by editing gradle.properties with:
android.useAndroidX=true
android.enableJetifier=true
And in "app/build.gradle" added the dependencies as classpath and/or api as needed:
com.google.android.gms:play-services-tasks
Is anyone facing same issue? In case you solved it, what have you done to solve it?
I had exactly the same problem, though using google_maps_flutter0.5.21+8.
I added for every error message the following line to android/app/build.gradle under dependencies. Look then like the following:
dependencies {
...
implementation 'androidx.cursoradapter:cursoradapter:1.0.0'
implementation 'androidx.drawerlayout:drawerlayout:1.0.0'
implementation 'androidx.documentfile:documentfile:1.0.0'
implementation 'androidx.viewpager:viewpager:1.0.0'
implementation 'androidx.arch.core:core-runtime:2.0.0'
implementation 'androidx.legacy:legacy-support-core-utils:1.0.0'
implementation 'androidx.fragment:fragment:1.0.0'
implementation 'androidx.core:core:1.1.0'
implementation 'com.google.android.gms:play-services-basement:17.0.0'
implementation 'com.google.android.gms:play-services-base:17.0.0'
}
Hope that helps. If there's a better way please tell. No flutter expert so far.

Removing a dependency in a NuGet package

I'm getting this error when updating a package:
Attempting to resolve dependency XRM.Client.
Circular dependency detected.
Is there anyway to remove the dependency? I don't know how it got there in the first place.
I have tried uninstalling and removing all references to the old package.
The problem was due to having the package listed in the project's packages.config file as well as having a reference.
By leaving the reference in the project, and removing the package from the packages.config, it fixed the problem :)

Compiling greenDAO source

When I do a fresh git clone of the greenDAO repo, import the project with Android Studio, and try to compile, references to all the Android objects throw Unresolved Symbol/Method errors. Similarly, the Android specific import statements are also unresolved.
I've gotten as far as realizing that the build.gradle files don't call apply plugin: 'android', but instead lists dependencies like:
dependencies {
provided 'com.google.android:android:4.1.1.4'
provided 'com.google.android:android-test:4.1.1.4'
provided 'com.google.android:annotations:4.1.1.4'
provided 'com.google.android:support-v4:r7'
provided 'com.google.android:support-v4:r7'
...
}
I've used the SDK manager to make sure I have all the files for API v4.1 installed. I also know how to use greenDAO by using the Maven repos and/or importing JARs. My problem is specific to building from source.
Update 1: As stated, when using provided, none of the Android files are found.
I don't have enough reputation to post images, but you can find a screenshot here.