Error MSB4044: The "ResolveLibraryProjectImports" task was not given a value for the required parameter "DesignTimeBuild"- From visual studio for Mac
Tried cleaning the project and and removed all the obj files.
Any help appreciated.
Thank you
Clean your Project and Build individual Components like right click on your common/Droid/iOs individually and click build,instead of doing build all,see if this works
1.) Check in your Build - Configuration manager that iOS project is not selected while Droid project is being build.
Or
2.) Check the packages version that you have installed are compatible, i.e Xamarin.Forms package version should be compatible with Droid other packages and version should be same for your PCL project.
Hope this may solve your issue.
when I replaced the file with another in the Android.coomon.targets, this error was fixed and the project got build successfully.
Related
I run a kotlin project successfully on my desktop, but when I import the same project on my laptop and when I rebuild the project, it's throwing "org.jetbrains.kotlin.util.KotlinFrontEndException: Exception while analyzing expression".
As suggested in net, I tried with clean build, invalidate cache and restart. I deleted the cache folders and logs but no results.
I have tried Googling, but found no answer for this particular problem.
Details:
Current kotlin plugin version: 1.3.61-release-Studio3.5-1, latest version of plugin is installed, using Android Studio 3.5.2
Any help is apreciated!
I was facing a similar error, updating Kotlin Plugin and restarting Android Studio fixed the issue for me
This seems to be a sync issue. To solve this, I performed these two steps in succession and then re-ran the project:
Deleted the entire build folder
Build > Clean-Project
In my case I was missing some jar files that were required for the app to build. So if you encounter this, check if you have all required dependencies on your classpath.
In my case it was broken xml layout file (the expection message did not indicate the file).
I am trying to build my project on device and having problem with library configuration for App-v7-appcompact from the screenshot as below.
I have successfully added App-v7-appcompact into Eclipse project and also tried adding manually in Eclipse folder but having same errors even I added to build path aswell. I dont know what is problem with Appcompact-v7-library, plz help me in fixing my issue so I am able to run application on device.
I also added libraries in properties aswell.
check here this is very helpfull http://developer.android.com/tools/support-library/setup.html
Today, I updated my Android SDK and Eciple ADT to the most recent versions (ADT Rev 22). After restarting Eclipse it is quite unhappy with the Build Paths whenever I reference custom libraries.
An example is shown in this screenshot:
My custom "Android Utilities Library" compiles fine, but everything that depends on it shows build path errors. E.g. when I investigate the build path settings for "Android URA Library" it shows me an error with the android_utilities_library.jar missing under "Android Dependencies" (which in fact is true, the libraries will be built to individual class files in bin/classes).
After reading the solution to Build path errors with library projects I tried to clean and manually build my projects in the correct order, but to no avail.
I've never dealt with this before, so I don't know how to attack the problem.
Any help is appreciated. Thx!
Installing the new Build Tools did the trick. They were not automatically included when I updated the SDK (probably need to run the update twice I guess).
I found a solution that works for me:
Go to Project Properties > Build Path > Order and Export
Then you have to check each checkbox.
In my case my libraries were restored
I hope it will help.
I can see that your project Android URA Library is referring to Android Utilities Library, then the problem should not relate to SDK/ADT update.
Please check:
Project Properties of Android URA Library, choose Project tab and make sure you added Android Utilities Library as dependency project. Otherwise, please add it.
If the problem is still existing, then Projects \ Clean All Projects
Go to libraries and check the build path of the dependent libraries. It should be same as your projects build path.
if you have import all the Dependencies in your workSpace.maybe you can:projetc-->build all.
I meet the problem,and it works well
I've downloaded and installed Android Studio with all the required dependencies such as JDK 1.7 and Gradle 1.6. I am able to import the projects and modules quite comfortably in Studio, but when I try to create a new project I am getting errors like this:
Since this is the new born IDE I couldn't find much details on this, except for this and this. Any help would be greatly appreciated.
After to pass much time trying to resolve this, i reached a solution :
Are you using "Windows Version" of AS ?
Please follow these steps :
1 - Install the last version of JDK with respective JAVA_HOME variable.
2 - Download and Install Gradle1.6 with respective GRADLE_HOME variable,
http://www.gradle.org/docs/current/userguide/userguide_single.html#installation.
2 - Delete these folders:
C:\Users\youruser\.AndroidStudioPreview
C:\Users\youruser\.android
C:\Users\youruser\.gradle
3 - Reopen Android Studio
Now probably it will works
There are a lot of bugs in "Early Access Preview"....
The error dialog mentions Gradle 1.4
Android Studio requires the Gradle plugin 0.4 which requires Gradle 1.6
I tried the environment variable and folder location stuff suggested, also made sure I had the latest version of Gradle, but that made no improvement. Then I ran Android Studio using an admin account, at which point all the errors disappeared. If you are able to, I suggest you do the same.
This was on a Windows 7 box.
For me, this problem was caused by my local.properties file showing a different path to the Android SDK. I do development on both Mac OS X and Windows and the properties file was showing my Mac OS X SDK path. Turns out, this file shouldnt even be checked into source control. Ooops!
The fix for me was on the Known Issues page here: http://tools.android.com/knownissues
I changed
dependencies {
classpath 'com.android.tools.build:gradle:0.4'
}
to:
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
Reopened Android Studio and voila!
The best solution I found is to check-out some empty project, then import it rather than use the "New project" utility.
I fixed the problem by downloading a fresh copy of AndroidStudio. During one of the updates something went wrong so I delete all config files and freshly downloaded the file from the Internet and then it worked fine for me.
(I'm on a Mac)
If you are still receiving this error when creating a new project, then try opening the project (after error) and removing the following from your build.gradle file in your module.
dependencies {
compile 'com.android.support:support-v4:13.0.+'
}
I resolved this by installing some extras from Android SDK what I did not think I needed: Google Repository and Google Play services. In addition of Android Support Repository.
When manually running gradle you get more meaningful error messages.
I have the emergency live tracker sample apk file. So I run that application via eclipse.
I am getting an error.
Just clean your project and then rebuild it. That will automatically generate a new R file.
I had that problem and it turned out to be some weird side-effect of me not using the proper Java compiler: I used to use 1.5 for earlier SDK versions but I had to use Java 1.6.
Right Click on Project->Bulid Path->Configure Build Path ther you see error android-support-v4.jar remove this library and add library again this works fine for me.