Im getting this error while running flutter app
FAILURE: Build failed with an exception.
[ +6 ms] * Where:
[ ] Build file 'F:\flutterdev\apps\calendar\android\app\build.gradle' line: 24
[ ] * What went wrong:
[ ] A problem occurred evaluating project ':app'.
[ ] > Failed to apply plugin 'com.android.internal.version-check'.
[ ] > Could not create plugin of type 'VersionCheckPlugin'.
[ ] > Could not generate a decorated class for type VersionCheckPlugin.
[ ] > Lcom/android/ide/common/repository/GradleVersion;
its good until I reinstalled visual studio code
does it have anything to do with it?
thanks for your help in future.
Try to upgrading gradle please make change in following floders-
In android/gradle/wrapper/gradle-wrapper.properties folder:
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
and in android/build.gradle folder:
classpath "com.android.tools.build:gradle:7.0.1"
Related
I am currently setting up Visual Studio Code for C++ usage, however when setting up my compiler path in edit configuration (UI) to C:\MinGW65\mingw64\bin\g++.exe it shows up with the error :
[27/04/2021, 10:25:03 pm] "C:\MinGW64\mingw64\bin\g++.exe" could not be parsed. 'includePath' from c_cpp_properties.json in folder 'Start' will be used instead.
Note: Start is the name of current opened directory.
I have tried setting up my compiler path to: C:/MinGW64/mingw64/bin/gcc.exe, which shows up with no errors however gcc.exe as researched is a compiler that compiles mainly C.
When looking inside the visual studio code documentations and the tutorial videos, it stated to write the path to the compiler nothing more nothing less, which I have done above. I have tried to solve this error; resulted in nothing. How could I fix this error?
Error:
[27/04/2021, 10:39:24 pm] "C:\MinGW64\mingw64\bin\g++.exe" could not be parsed. 'includePath' from c_cpp_properties.json in folder 'Start' will be used instead.`
Configuration File:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${default}"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:/MinGW64/mingw64/bin/g++.exe",
"intelliSenseMode": "windows-gcc-x64"
}
],
"version": 4
}
I'm using this package to scan qr code. But I upgrade to 3.x version, have error:
[ +2 ms] FAILURE: Build failed with an exception.
[ +2 ms] * What went wrong:
[ ] Some problems were found with the configuration of task ':barcode_scan:generateDebugProto'.
[ ] > Directory '<projectName>\build\barcode_scan\extracted-protos\main' specified for property '$4' does not exist.
[ +19 ms] * Try:
[ +17 ms] 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.
I try add main folder to extracted-protos but when I run app, this folder
is lost.
After spending 2 days trying to fix it. Finally I figured out how to:
Go to android folder > build.gradle file. After add line:
buildscript {
ext.kotlin_version = '1.3.61'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.12' //add this line
}
}
And It work.
I'm having a problem trying to use Appodeal with GooglePlayServices and Unity3d, here are my steps:
1 - Import the GooglePlayServices package;
2 - Import the Appodeal package
3 - Compile the project.
Then the error:
CommandInvokationFailure: Gradle build failed
...
...
FAILURE: Build failed with an exception.
What went wrong
Execution failed for task ':transformClassesWithDexForRelease'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
...
...
This is about the android 65k methods limits. Right?
There is a way to solve this without having to use Proguard or export my project to Android Studio?
Thank You.
Thanks to Appodeal Support, i solved my problem:
1- Remove mmedia and inmobi folders from plugins/android.
2- Before initiliazation code of sdk, write:
Appodeal.disableNetwork("mmedia");
Appodeal.disableNetwork("inmobi");
my project was built perfectly after that
Like i mentioned i finally got Kivy to compile in Eclipse Pydev for Windows 7 without any errors. When i ran the file i received that error and of course no window popped up. Does anyone know why and how to fix the error?
main.py
import kivy
kivy.require('1.9.0') # #UndefinedVariable
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.lang import Builder
presentation = Builder.load_file("test.kv")
class StartScreen(FloatLayout):
pass
class TestApp(App):
def build(self):
return presentation
if __name__=='__main__':
TestApp().run()
test.kv
#:kivy 1.9
<StartScreen>:
orientation: 'vertical'
canvas:
Color:
rgba: 1,0,1,1
Rectangle:
source: 'kivy/graphics/blu.png'
FloatLayout:
I went through in made sure pygame was installed and i was able to import it without erros. I have Cython installed as well as it is a dependency o f Kivy. Getting new error after i upgraded. Seems like the same error but different:
[INFO ] [Logger ] Record log in C:\Users\qzfyrp\.kivy\logs\kivy_15-08-31_29.txt
[INFO ] [Kivy ] v1.9.0
[INFO ] [Python ] v3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)]
[INFO ] [Factory ] 173 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_pil (img_sdl2, img_ffpyplayer ignored)
[CRITICAL ] [Window ] Unable to find any valuable Window provider at all!
sdl2 - ImportError: DLL load failed: The specified module could not be found.
File "C:\Kivy\kivy34\kivy\core\__init__.py", line 57, in core_select_lib
fromlist=[modulename], level=0)
File "C:\Kivy\kivy34\kivy\core\window\window_sdl2.py", line 26, in <module>
from kivy.core.window._window_sdl2 import _WindowSDL2Storage
[CRITICAL ] [App ] Unable to get a Window, abort.
Edit: Ok. At first when i started this i was able to get at least a screen to come up when i ran this through kivy.bat. No when i try to run this through kivy.bat i get the same error i am getting in Eclipse.
I had the same error in LiClipse and solved it by following the instructions in the last post at Kivy, Eclipse and PyDev (also PyPy).
Just open Window -> Preferences, navigate in the tree to PyDev -> Interpreters -> Python Interpreter go to the flag Environment and add to the Variable PATH your SDL2 directory.
While attempting to install OpenCV I noticed that my first attempt aborted only 47% complete.
Once I executed "make -j8" again the percentage elevated to 60% completion.
1st attempt:
make -j8
Scanning dependencies of target zlib
Scanning dependencies of target libjasper
Scanning dependencies of target libjpeg
[ 0%] [ 0%] [ 0%] [ 0%] [ 0%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/adler32.c.o
Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/compress.c.o
Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/crc32.c.o
Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzclose.c.o
Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/deflate.c.o
[ 0%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzlib.c.o
[ 1%] [ 1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzread.c.o
Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcapimin.c.o
[ 1%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_cm.c.o
[ 1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzwrite.c.o
[ 1%] [ 1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inflate.c.o
Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcapistd.c.o
[ 1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/infback.c.o
[ 1%] [ 1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inftrees.c.o
Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jccoefct.c.o
[ 1%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_debug.c.o
[ 1%] [ 1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inffast.c.o
Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jccolor.c.o
[ 1%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/trees.c.o
[ 1%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcdctmgr.c.o
[ 1%] [ 2%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_getopt.c.o
Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jchuff.c.o
[ 2%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/uncompr.c.o
.....
[ 47%] Built target opencv_calib3d
make: *** [all] Error 2
2nd attempt:
make -j8
[ 2%] Built target zlib
[ 7%] [ 11%] Built target libjasper
Built target libjpeg
[ 13%] Built target libpng
[ 18%] Built target libtiff
[ 21%] Built target opencv_core
[ 30%] Built target IlmImf
[ 30%] Built target opencv_flann
[ 32%] Built target opencv_ml
[ 37%] Built target opencv_imgproc
[ 37%] Built target opencv_photo
[ 39%] Built target opencv_video
[ 41%] Built target opencv_highgui
[ 44%] [ 45%] Built target opencv_objdetect
Built target opencv_features2d
[ 45%] [ 45%] [ 45%] [ 45%] [ 45%] [ 45%] [ 45%] [ 47%] Built target opencv_nonfree
Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts.cpp.o
Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/precomp.cpp.o
Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_func.cpp.o
Built target opencv_calib3d
Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_perf.cpp.o
Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_gtest.cpp.o
Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_arrtest.cpp.o
Scanning dependencies of target opencv_contrib
Scanning dependencies of target opencv_legacy
[ 47%] Building CXX object modules/contrib/CMakeFiles/opencv_contrib.dir/src/adaptiveskindetector.cpp.o
[ 47%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/3dtracker.cpp.o
...
[ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/prewarp.cpp.o
[ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/pyrsegmentation.cpp.o
[ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/scanlines.cpp.o
[ 59%] [ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/segment.cpp.o
Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/snakes.cpp.o
[ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/spilltree.cpp.o
[ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/stereogc.cpp.o
[ 59%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/subdiv2.cpp.o
[ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/testseq.cpp.o
[ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/texture.cpp.o
[ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/trifocal.cpp.o
[ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/vecfacetracking.cpp.o
[ 60%] Building CXX object modules/legacy/CMakeFiles/opencv_legacy.dir/src/video.cpp.o
Linking CXX shared library ../../lib/libopencv_legacy.dylib
[ 60%] Built target opencv_legacy
make: *** [all] Error 2
After several more attemps, I reached 72% completion and any further efforts returned the exact same results:
1 error generated.
make[2]: *** [modules/ts/CMakeFiles/opencv_ts.dir/src/precomp.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [modules/ts/CMakeFiles/opencv_ts.dir/src/ts.cpp.o] Error 1
1 error generated.
make[2]: *** [modules/ts/CMakeFiles/opencv_ts.dir/src/ts_arrtest.cpp.o] Error 1
1 error generated.
make[2]: *** [modules/ts/CMakeFiles/opencv_ts.dir/src/ts_perf.cpp.o] Error 1
1 error generated.
make[2]: *** [modules/ts/CMakeFiles/opencv_ts.dir/src/ts_func.cpp.o] Error 1
1 error generated.
make[2]: *** [modules/ts/CMakeFiles/opencv_ts.dir/src/ts_gtest.cpp.o] Error 1
make[1]: *** [modules/ts/CMakeFiles/opencv_ts.dir/all] Error 2
make: *** [all] Error 2
Why should your progress change at all if you run the same command in the same environment?
make (witout using -k) stops at the first error. When starting make again it calculates the dependencies again ommiting already made stuff and if something other than the command causing the previous error is the 1st thing to do, it may succeed and so generate progress until the next error ist hit or the previosly seen error strikes again...
Repeating this will somewhen reach a point where starting make again and again will not generate progress because all things left to do depend on actions causing an error.
make -k will run as far as possible by not stopping for errors. Try this twice and there should not be further progress in the 2nd run.