I'm trying to use the android bootstrap : https://github.com/donnfelker/android-bootstrap.
I clone the code.but when
So i try the next command from the app directory :
mvn clean package
but get Something wrong.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project android-bootstrap: Compilation failure: Compilation failure:
[ERROR] \Users\keepcleargas\android-bootstrap\app\src\main\java\com\donnfelker\android\bootstrap\BootstrapModule.java:[33,8] Error: can not find symbol
[ERROR] \Users\keepcleargas\android-bootstrap\app\src\main\java\com\donnfelker\android\bootstrap\BootstrapModule.java:[33,22] The error: <none> initialization procedure is illegal.
can't recognize the symbol 'entryPoints'.
#Module
(
complete = false,
entryPoints= {
BootstrapApplication.class,
BootstrapAuthenticatorActivity.class,
CarouselActivity.class,
BootstrapTimerActivity.class,
CheckInsListFragment.class,
NewsActivity.class,
NewsListFragment.class,
UserActivity.class,
UserListFragment.class,
TimerService.class
}
)
The symbol entryPoints has been renamed to to injects.
See discussion here: https://github.com/donnfelker/android-bootstrap/issues/44
Related
Soo... everything worked fine then after taking a break from work apps wont run.
New or empty project it does not matter.
Flutter doctor says everything is fine.
Here is Debug console.
Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
lib/main.dart:1
Xcode build done. 3.8s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/bm/_wgnp7b94l78gc2g88cq3kbc0000gn/T/flutter_tools.MW6UxN/flutter_ios_build_temp_dirktvpW1/temporary_xcresult_bundle
/Applications/flutter/packages/flutter/lib/src/widgets/ticker_provider.dart:186:7: Error: 'ethrow' isn't a type.
ethrow FlutterError.fromParts(<DiagnosticsNode>[
^^^^^^
/Applications/flutter/packages/flutter/lib/src/widgets/ticker_provider.dart:186:14: Error: Expected ';' after this.
ethrow FlutterError.fromParts(<DiagnosticsNode>[
^^^^^^^^^^^^
/Applications/flutter/packages/flutter/lib/src/widgets/ticker_provider.dart:186:26: Error: Expected an identifier, but got '.'.
Try inserting an identifier before '.'.
ethrow FlutterError.fromParts(<DiagnosticsNode>[
^
/Applications/flutter/packages/flutter/lib/src/widgets/ticker_provider.dart:195:6: Error: A value of type 'bool?' can't be assigned to a variable of type 'bool' because 'bool?' is nullable and 'bool' isn't.
}());
^
Failed to package /Users/stankoo003/minimal_design.
Command PhaseScriptExecution failed with a nonzero exit code
note: Building targets in dependency order
warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
Result bundle written to path:
/var/folders/bm/_wgnp7b94l78gc2g88cq3kbc0000gn/T/flutter_tools.MW6UxN/flutter_ios_build_temp_dirktvpW1/temporary_xcresult_bundle
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.
Exited
flutter doctor, empty projects..
This shows a problem in Flutter's TickerProvider class.
It might be a version problem. Try flutter upgrade.
Clean your project flutter clean then flutter pub get and try building again.
I m trying to execute handtracking android app using bazel and when I run the build command I get this error :
can you help me fix it please
ERROR: C:/users/admin/mediapipe_repo/mediapipe/mediapipe/framework/formats/BUILD:251:24: C++ compilation of rule '//mediapipe/framework/formats:landmark_cc_proto' failed (Exit 1): clang fai
led: error executing command external/androidndk/ndk/toolchains/llvm/prebuilt/windows-x86_64/bin/clang -gcc-toolchain external/androidndk/ndk/toolchains/aarch64-linux-android-4.9/prebuilt/w
indows-x86_64 -target ... (remaining 57 argument(s) skipped)
clang: error: no such file or directory: '/w'
clang: error: no such file or directory: '/D_USE_MATH_DEFINES'
clang: error: no such file or directory: '/std:c++17'
Target //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 151.344s, Critical Path: 132.86s
INFO: 160 processes: 128 internal, 31 local, 1 worker.
FAILED: Build did NOT complete successfully
There is a note in the Mediapipe documentation:
Note: building MediaPipe Android apps is still not possible on native Windows. Please do this in WSL instead and see the WSL setup instruction in the next section.
This implies that what you are trying to do is currently not possible, sorry. See also this issue for other people in your situation.
I have Ubuntu 15.04 64 bit, Scala 2.11.6 and sbt 0.13.8.
I have android-sdk installed with at least android-22, and ANDROID_HOME set properly.
I followed the "Usage" section in android-sdk-plugin and did the following:
Created a fresh directory with the following files:
build.sbt:
lazy val root = (project in file (".")).
settings(
name := "Test",
version := "0.0.1",
scalaVersion := "2.11.6"
)
project/plugins.sbt:
addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "1.4.1")
project/build.scala:
object Build extends android.AutoBuild
Ran sbt and got the following output:
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
[info] Loading global plugins from /home/pcn/.sbt/0.13/plugins
[info] Loading project definition from /home/pcn/Code/practice/test-scala-android/project
[info] Updating {file:/home/pcn/Code/practice/test-scala-android/project/}test-scala-android-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Compiling 1 Scala source to /home/pcn/Code/practice/test-scala-android/project/target/scala-2.10/sbt-0.13/classes...
[info] Set current project to Test (in build file:/home/pcn/Code/practice/test-scala-android/)
>
From sbt's promt, typed gen-android android-22 com.pcn.android.test Test and got the following output:
[info] Creating project: Test
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
Error: Project folder '.' is not empty. Please consider using 'android update' instead.
Created directory /home/pcn/Code/practice/test-scala-android/src/main/java
Created directory /home/pcn/Code/practice/test-scala-android/src/main/java/com/pcn/android/test
Added file ./src/main/java/com/pcn/android/test/MainActivity.java
Created directory /home/pcn/Code/practice/test-scala-android/src/androidTest/java
Created directory /home/pcn/Code/practice/test-scala-android/src/androidTest/java/com/pcn/android/test
Added file ./src/androidTest/java/com/pcn/android/test/MainActivityTest.java
Created directory /home/pcn/Code/practice/test-scala-android/src/main/res
Created directory /home/pcn/Code/practice/test-scala-android/src/main/res/values
Added file ./src/main/res/values/strings.xml
Created directory /home/pcn/Code/practice/test-scala-android/src/main/res/layout
Added file ./src/main/res/layout/main.xml
Created directory /home/pcn/Code/practice/test-scala-android/src/main/res/drawable-xhdpi
Created directory /home/pcn/Code/practice/test-scala-android/src/main/res/drawable-hdpi
Created directory /home/pcn/Code/practice/test-scala-android/src/main/res/drawable-mdpi
Created directory /home/pcn/Code/practice/test-scala-android/src/main/res/drawable-ldpi
Added file ./src/main/AndroidManifest.xml
Added file ./build.gradle
Created directory /home/pcn/Code/practice/test-scala-android/gradle/wrapper
[info] Creating SBT project files
>
From sbt's prompt, typed compile and got the following output:
[info] Updating {file:/home/pcn/Code/practice/test-scala-android/}root...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Compiling 1 Java source to /home/pcn/Code/practice/test-scala-android/target/scala-2.11/classes...
[error] /home/pcn/Code/practice/test-scala-android/src/main/java/com/pcn/android/test/MainActivity.java:3: package android.app does not exist
[error] android.app.Activity
[error] /home/pcn/Code/practice/test-scala-android/src/main/java/com/pcn/android/test/MainActivity.java:4: package android.os does not exist
[error] android.os.Bundle
[error] /home/pcn/Code/practice/test-scala-android/src/main/java/com/pcn/android/test/MainActivity.java:6: cannot find symbol
[error] symbol: class Activity
[error] Activity
[error] /home/pcn/Code/practice/test-scala-android/src/main/java/com/pcn/android/test/MainActivity.java:10: cannot find symbol
[error] symbol: class Bundle
[error] location: class com.pcn.android.test.MainActivity
[error] Bundle
[error] /home/pcn/Code/practice/test-scala-android/src/main/java/com/pcn/android/test/MainActivity.java:9: method does not override or implement a method from a supertype
[error] #Override
[error] /home/pcn/Code/practice/test-scala-android/src/main/java/com/pcn/android/test/MainActivity.java:12: cannot find symbol
[error] symbol: variable super
[error] location: class com.pcn.android.test.MainActivity
[error] super
[error] /home/pcn/Code/practice/test-scala-android/src/main/java/com/pcn/android/test/MainActivity.java:13: package R does not exist
[error] R.layout
[error] (compile:compileIncremental) javac returned nonzero exit code
[error] Total time: 0 s, completed Jun 19, 2015 1:18:50 AM
>
As we can see, for some reason it doesn't know about Activity and other Android classes. What did I do wrong and how do I fix it? I'm a complete noob with sbt so it's great if I can get detailed instructions.
Thanks.
PS: This is the content of my ~/.sbt/0.13/global.sbt, in case it's relevant:
scalacOptions ++= Seq("-deprecation", "-feature", "-optimize")
What you did in build.sbt confused AutoBuild. You can remove the project definition from build.sbt, or remove AutoBuild and apply androidBuild to the project manually.
I am getting the following error while trying to make titanium build with 3.0.0.GA using ant scripting
[exec] [ERROR] Error(s) compiling generated Java code
[exec] [ERROR] D:\Workarea\experiment\teacher\digitallyTE\build\android\gen
\com\edurite\digiteacher\DigitallyteApplication.java:36: cannot find symbol [exec] symbol : class AssetCryptImpl [exec] location: class com.edurite.digiteacher.DigitallyteApplication [exec] KrollAssetHelper.setAssetCrypt(new AssetCryptImpl()) ; [exec] ^ [exec] Note: D:\Workarea\experiment\teacher\digitallyTE\build\android\gen\c om\edurite\digitallyTE\AssetCryptImpl.java uses unchecked or unsafe operations. [exec] Note: Recompile with -Xlint:unchecked for details. [exec] 1 error [exec]
BUILD FAILED D:\Workarea\experiment\teacher\build.xml:11: exec returned: 1
Quite a while ago that the question was asked. But I guess my findings could be interesting as a AssetCryptImpl.java:44: error: cannot find symbol error happened to me lastly. The AssetCryptImpl.java template is filled with some asset variables during the build (check ~/.titanium/mobilesdk/linux/6.1.0.GA/android/cli/commands/_build.js). This process depends at least on Linux on some system commands. Those commands failed with a Segmentation Fault during my builds. Thus the asset variables don't get rendered inside the AssetCryptImpl.java template and the Java compiler will complain about missing symbols.
Check your build output for a line like
[INFO] : Encrypting JavaScript files: /home/simon/.titanium/mobilesdk/linux/6.1.0.GA/android/titanium_prep.linux64 "com.example.id" "/home/simon/test/Asdf/build/android/assets" "alloy/CFG.js" "app.js" "alloy/backbone.js" "alloy/constants.js" "alloy/controllers/BaseController.js" "alloy/controllers/index.js" "alloy/styles/index.js" "alloy/sync/localStorage.js" "alloy/sync/properties.js" "alloy/sync/sql.js" "alloy/underscore.js" "alloy/widget.js" "alloy.js" "ti.cloud/ti.cloud.js" "_app_props_.json"
and try to run the included command.
I can't build Android + Scala (and IntelliJ Idea 12) project using sbt and sbt-android plugin. I installed everything needed and added ANDROID_SDK_HOME to both .bashrc and /etc/profile but:
me123#ubuntu:~/Documents/android_projects/my-android-project$ echo $ANDROID_SDK_HOME
/home/me123/android-sdk-linux/sdk
me123#ubuntu:~/Documents/android_projects/my-android-project$ sudo echo $ANDROID_SDK_HOME
/home/me123/android-sdk-linux/sdk
me123#ubuntu:~/Documents/android_projects/my-android-project$ sbt
[info] Loading global plugins from /home/me123/.sbt/plugins
[info] Loading project definition from /home/me123/Documents/android_projects/my-android-project/project
[info] Compiling 3 Scala sources to /home/me123/Documents/android_projects/my-android-project/project/target/scala-2.9.2/sbt-0.12/classes...
[error] /home/me123/Documents/android_projects/my-android-project/project/target/scala-2.9.2/sbt-0.12/classes/AndroidEclipse$Transformer.class (Permission denied)
[error] one error found
[error] (compile:compile) Compilation failed
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q
me123#ubuntu:~/Documents/android_projects/my-android-project$ sudo sbt
[info] Loading project definition from /home/me123/Documents/android_projects/my-android-project/project
[info] Updating {file:/home/me123/Documents/android_projects/my-android-project/project/}default-6ff5da...
[info] Resolving org.scala-sbt#precompiled-2_10_0;0.12.2 ...
[info] Done updating.
[error] Android SDK not found. You might need to set ANDROID_SDK_HOME or ANDROID_SDK_ROOT or ANDROID_HOME
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q
UPDATE:
> android:start-device
[info] Wrote /home/alex/Documents/android_projects/my-android-project/target/scala-2.10/src_managed/main/scala/my/android/project/TR.scala
[info] Compiling 2 Scala sources and 1 Java source to /home/alex/Documents/android_projects/my-android-project/target/scala-2.10/classes...
[warn] there were 4 feature warnings; re-run with -feature for details
[warn] one warning found
ProGuard, version 4.6
ProGuard is released under the GNU General Public License. You therefore
must ensure that programs that link to it (scala, ...)
carry the GNU General Public License as well. Alternatively, you can
apply for an exception with the author of ProGuard.
Reading program directory [/home/alex/Documents/android_projects/my-android-project/target/scala-2.10/classes]
[trace] Stack trace suppressed: run last main/android:proguard for the full output.
[error] (main/android:proguard) java.io.IOException: Can't read [/home/alex/Documents/android_projects/my-android-project/target/scala-2.10/classes] (Can't process class [my/android/project/R$id.class] (Unsupported version number [51.0] for class format))
[error] Total time: 14 s, completed May 30, 2013 3:49:46 PM
First, doing sudo echo $ANDROID_HOME will be exactly the same as echo $ANDROID_HOME, because the variable will be replaced by your shell before executing the command.
Then, you most likely have a permission problem. Try running this to make sure you have the right ones :
$ chmod -Rv 700 /home/me123/Documents/android_projects/my-android-project/