How can I build the OpenIAB unity package using gradle? - unity3d

I've got problems at building the OpenIAB unity package.
The sdk.dir is already set in the local.properties file.
This is the log:
Denniss-MBP:unity_plugin dennisxxx$ ../gradlew clean buildPlugin --info
Starting Build
Settings evaluated using settings file '/Volumes/Daten HDD/Downloads/OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62/settings.gradle'.
Projects loaded. Root project using build file '/Volumes/Daten HDD/Downloads/OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62/build.gradle'.
Included projects: [root project 'OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62', project ':Unity Plugin', project ':library']
Evaluating root project 'OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62' using build file '/Volumes/Daten HDD/Downloads/OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62/build.gradle'.
Evaluating project ':Unity Plugin' using build file '/Volumes/Daten HDD/Downloads/OpenIAB-Unity-Plugin-446cc2f310a2b13bcfdb93cf92ac5f9128d51f62/unity_plugin/build.gradle'.
Evaluating project ':library' using empty build file.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':Unity Plugin'.
> Configuration with name 'default' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
Total time: 4.414 secs
Denniss-MBP:unity_plugin dennisxxx$
What can I do to fix this issue?

Related

One Signal setup not match with current firebase dependencies

I try to prepare my flutter app to work with one signal plugin , but when follow the steps that defined by one signal itself , there are many error related to version of dependancies appear I upgrade them but the problem is still exist and not clear for me
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> In project 'android' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1
0.2.1, 16.0.99]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.onesignal:OneSignal:3.15.6 -> com.google.android.gms:play-services-location#[10.2.1, 16.0.99], b
ut play-services-location version was 17.1.0.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'android' depends on project 'geolocator' which depends onto com.google.android.gms:play-services-location#16
.0.0
-- Project 'android' depends on project 'app' which depends onto com.onesignal:OneSignal#[3.15.6, 3.99.99]
-- Project 'android' depends on project 'app' which depends onto com.onesignal:OneSignal#{strictly 3.15.6}
-- Project 'android' depends on project 'onesignal_flutter' which depends onto com.onesignal:OneSignal#3.15.6
-- Project 'android' depends on project 'app' which depends onto com.google.android.gms:play-services-location#17.1.0
-- Project 'android' depends on project 'app' which depends onto com.google.android.gms:play-services-location#{strictly
17.1.0}
-- Project 'android' depends on project 'location' which depends onto com.google.android.gms:play-services-location#16.+
For extended debugging info execute Gradle from the command line with ./gradlew --info :android:assembleDebug to see the
dependency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at http
s://github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = true }" to you
r build.gradle file.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. ```
May be this issue arise because your project not match with this version of library ,
Try to use this way(default version)
onesignal_flutter:
Not this way
onesignal_flutter: ^2.6.2

Can't get SHA1 from flutter project because of "The option setting 'android.enableR8=false' is deprecated"

I want to get SHA1 with this comment gradlew signingReport in my android folder. But I can't.
my gradle version is 4.0.2.
I tried to delete the android.enableR8=true from the gradle.propertie file, But nothing changed!
Result of gradlew signingReport --scan
> Configure project :app
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
> Configure project :file_picker
WARNING: The option setting 'android.enableR8=true' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
FAILURE: Build failed with an exception.
* What went wrong:
Task 'singingReport' not found in root project 'android'. Some candidates are: 'signingReport'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log
output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 55s
Publishing a build scan to scans.gradle.com requires accepting the Gradle Terms of Service defined at https://gradle.com/terms-of-service. Do you accept these terms? [yes, no] y
Please enter 'yes' or 'no': yes
Gradle Terms of Service accepted.
Publishing build scan...
Result of gradlew singingReport --scan:
Initialized native services in: C:\Users\Ali Azad\.gradle\native
The client will now receive all logging from the daemon (pid: 6348). The daemon log file: C:\Users\Ali Azad\.gradle\daemon\6.1.1\daemon-6348.out.log
Starting 7th build in daemon [uptime: 1 hrs 22 mins 57.548 secs, performance: 99%, GC rate: 0.00/s, heap usage: 9% of 1.1 GB]
Using 2 worker leases.
Starting Build
Settings evaluated using settings file 'D:\projects\Flutter Projects\mobile-app\android\settings.gradle'.
Projects loaded. Root project using build file 'D:\projects\Flutter Projects\mobile-app\android\build.gradle'.
Included projects: [root project 'android', project ':app', project ':file_picker', project ':firebase_auth', project ':firebase_core', project ':flutter_plugin_android_lifecycle', project ':flutter_splash_screen', project ':google_maps_flutter', project ':google_sign_in', project ':image_cropper', project ':image_picker', project ':location', project ':shared_preferences', project ':webview_flutter']
> Configure project :
Evaluating root project 'android' using build file 'D:\projects\Flutter Projects\mobile-app\android\build.gradle'.
> Configure project :app
Evaluating project ':app' using build file 'D:\projects\Flutter Projects\mobile-app\android\app\build.gradle'.
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
Creating configuration androidTestUtil
Configuring Java sources compilation with source level 1.8 and target level 1.8.
Configuring Java sources compilation with source level 1.8 and target level 1.8.
Configuring Java sources compilation with source level 1.8 and target level 1.8.
Configuring Java sources compilation with source level 1.8 and target level 1.8.
Configuring Java sources compilation with source level 1.8 and target level 1.8.
Configuring Java sources compilation with source level 1.8 and target level 1.8.
Configuring Java sources compilation with source level 1.8 and target level 1.8.
> Configure project :file_picker
Evaluating project ':file_picker' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\file_picker-2.0.13\android\build.gradle'.
WARNING: The option setting 'android.enableR8=true' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
Creating configuration androidTestUtil
> Configure project :firebase_auth
Evaluating project ':firebase_auth' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.18.3\android\build.gradle'.
Creating configuration androidTestUtil
> Configure project :firebase_core
Evaluating project ':firebase_core' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.5.2\android\build.gradle'.
Creating configuration androidTestUtil
> Configure project :flutter_plugin_android_lifecycle
Evaluating project ':flutter_plugin_android_lifecycle' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.11\android\build.gradle'.
Creating configuration androidTestUtil
> Configure project :flutter_splash_screen
Evaluating project ':flutter_splash_screen' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\flutter_splash_screen-0.1.0\android\build.gradle'.
Creating configuration androidTestUtil
> Configure project :google_maps_flutter
Evaluating project ':google_maps_flutter' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\build.gradle'.
Creating configuration androidTestUtil
> Configure project :google_sign_in
Evaluating project ':google_sign_in' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\google_sign_in-4.5.6\android\build.gradle'.
Creating configuration androidTestUtil
> Configure project :image_cropper
Evaluating project ':image_cropper' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\image_cropper-1.3.1\android\build.gradle'.
Creating configuration androidTestUtil
> Configure project :image_picker
Evaluating project ':image_picker' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\image_picker-0.6.7+14\android\build.gradle'.
Creating configuration androidTestUtil
> Configure project :location
Evaluating project ':location' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\location-2.5.4\android\build.gradle'.
Creating configuration androidTestUtil
> Configure project :shared_preferences
Evaluating project ':shared_preferences' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.12+4\android\build.gradle'.
Creating configuration androidTestUtil
> Configure project :webview_flutter
Evaluating project ':webview_flutter' using build file 'D:\Learning\flutter\flutter_sdk\.pub-cache\hosted\pub.dartlang.org\webview_flutter-1.0.7\android\build.gradle'.
Creating configuration androidTestUtil
All projects evaluated.
Analytics other plugin to proto: Unknown plugin type FlutterPlugin expected enum FLUTTERPLUGIN
Configuring Java sources compilation with source level 1.7 and target level 1.7.
Configuring Java sources compilation with source level 1.7 and target level 1.7.
Configuring Java sources compilation with source level 1.7 and target level 1.7.
Configuring Java sources compilation with source level 1.7 and target level 1.7.
Configuring Java sources compilation with source level 1.7 and target level 1.7.
Configuring Java sources compilation with source level 1.7 and target level 1.7.
Configuring Java sources compilation with source level 1.7 and target level 1.7.
FAILURE: Build failed with an exception.
* What went wrong:
Task 'singingReport' not found in root project 'android'. Some candidates are: 'signingReport'.
* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 10s
You have a typo in your command. It should be gradlew signingReport not gradlew singingReport.

when i run my flutter app ,there emerge a unexpected problem , error :

What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve project :path_provider_macos.
Required by:
project :app > project :path_provider
Unable to find a matching configuration of project :path_provider_macos: None of the consumable configurations have attributes.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2s
Finished with error: Gradle task assembleDebug failed with exit code 1
Some imports are missing. Try flutter pub get to update packages, or flutter pub cache repair, which will re-import all dependencies.
thank everyone , i get the solution about my problem : go to your Flutter sdk folder ,then go to .pub-cache\hosted\pub.dartlang.org\ ,if there have a path_provider_macos-0.0.4 folder ,delete it ,if no ,you try go .pub-cache\hosted\pub.flutter-io.cn\ , and remove path_provider_macos-0.0.4 folder
Deleted the folder you said,but show this wrong : Project :flutter declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :path_provider_macos.
The following is detailed:
> A problem occurred configuring project ':flutter'.
> Could not resolve all dependencies for configuration ':flutter:embed'.
> Could not resolve project :path_provider_macos.
Required by:
project :flutter
> Project :flutter declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :path_provider_macos.
> Could not resolve project :path_provider_linux.
Required by:
project :flutter
> Project :flutter declares a dependency from configuration 'embed' to configuration 'default' which is not declared in the descriptor for project :path_provider_linux.

Gradle suddenly broke

I haven't modified any build files (and even tried reverting code), but Gradle started crashing on this:
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':macros:compileScala'.
> No value has been specified for property 'zincClasspath'.
* Try:
Run with --info or --debug option to get more log output.
* Exception is:
org.gradle.api.tasks.TaskValidationException: A problem was found with the configuration of task ':macros:compileScala'.
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
I was writing tests and after one run it just stopped working. Any ideas why it happened and how to fix it?
PS: Search only returned https://stackoverflow.com/a/43085471/1017211 which didn't help and I don't see any reason to update Gradle since it was working nicely with current version.
Have you tried on Android Studio:
File > Invalidate Caches / Restart...
and/or
Tools > Android > Sync Projects with Gradle Files
You can also delete the .gradle folder, then rebuild the project...

cordova build errord gradle

i'm trying to install cordova and open a project on eclipse...this error is coming out when typing cordova build android i setted the proxy gradle.properties under project_folder\prova\platforms\android also under all gradle directory...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:1.0.0+.
Required by:
:android:unspecified
> Failed to list versions for com.android.tools.build:gradle.
> Unable to load Maven meta-data from https://repo1.maven.org/maven2/co
m/android/tools/build/gradle/maven-metadata.xml.
> Could not GET 'https://repo1.maven.org/maven2/com/android/tools/bu
ild/gradle/maven-metadata.xml'.
> Connection reset by peer: connect
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
Total time: 25.641 secs
Built the following apk(s):
proxy settings:
systemProp.http.proxyHost=***
systemProp.http.proxyPort=3128
systemProp.http.proxyUser=***
systemProp.http.proxyPassword=***
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=***
systemProp.https.proxyPort=***
systemProp.https.proxyUser=***
systemProp.https.proxyPassword=***
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost
i've already read other post so i've already tryied different procedure...