Problem with Building NetGuard App in Android Studio - Android Q&A, Help & Troubleshooting

Hi,
I am trying to build NetGuard app in Android Studio.
I have obtained the source code from here: https://github.com/M66B/NetGuard
The errors I see are:
Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating project ':app'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.lambda$apply$0(DefaultScriptPluginFactory.java:133)
at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:79)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:136)
at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:65)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
I searched for this problem and one of the solutions was to comment out "include ':app'" in settings.gradle file.
Can anyone please guide on how to go about this?
-- Sana

Reported, not Android Automotive

Related

SDK has reduced api.

Please help.
I need repack android.jar
Yesterday i read android source codes and i realize that classes have more methods than casual sdk provide.
So
1.download android 2.2 rev 1.1
2.Unjar it
3.unjar android 2.2 rev 3 from sdk
4.Replace classes
5.repack to jar
6.rewrite android.jar in sdk folder
Some classes causes warning due to missing objects. So you can delete them or replace from default.
But i have problem with classes that does not been in native android.jar. eclipse see namespace of package but classes not.
Idea: because android.jar contain only empty stub classes. it is only compiler reference and eclipse use it only to know android api.
So is absolutely right add stub if they exist in android system.
Question: why android not support all api functions?
Is somewhere cookbook "how to"
Create own android.jar?
"Try google" is not answer.
Sent from my HTC Wildfire using XDA App
Explain in proper English
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Moving to Q&A

[API] [OpenSource] API for Hijri-Gregorian Date Conversion

Hi all,
I don't know if this is the right forum to post this, and sorry if it is not.
I have created a free RESTful API for Hijri-to-Gregorian and Gregorian-to-Hijri converter.
For developers who are interested in using the online API in their apps, please refer to the project website: http://www.hijrical.org
I have not yet put on the source code, but the API is on and running flawlessly (until now ).
Thanks.
Hi again,
I have put the source code on codeplex:
http://hijri.codeplex.com/
Cheers.

Eclipse setup for a single AOSP-CM java application

Preamble: I am a Java Android developer. I know the standard Android development flow.
I want to start developing for AOSP-CM. I follow the guide for import the whole Java source code in Eclipse, using the .classpath file provided with the source code. So I have a Java Project with all the source code, and I can browse and edit everything.
The next step is try to setup a single Android Project, for example the Phone Application, in order to use the ADT plugin feature like GUI graphical editor.
I want to edit Phone sources, build within Eclipse and above all use Eclipse Debugger.
It is possible? Where I can find a guide or tutorial ?
Sorry but I don't believe that nobody has addressed this problem.
How a CyanongenMod developer develop and build a single application? (please...don't reply with "vim" , "nano" or similar....not in the 21th century )

Error while importing project in android studio please help

i am a newbie, i am getting the following error while trying to import an app in android studio:
* Project Ringster:F:\App\2\project.properties:
Library reference ..\TestLinSDK could not be found
Path is F:\App\2\..\TestLinSDK which resolves to F:\App\TestLinSDK
i need to present the apk in few hours if somebody could help me i'll be grateful, even i can give a free rooted server

Android studio emulator engineering build

I'm looking for a Android studio emulator engineering GSI build so I can develop (debug) system apps that use android:sharedUserId="android.uid.system" on the manifest. Where can I download them and how do I create a AVD to be used in android studio ? I'm looking for Android 8 or 9.
xjpmauricio said:
I'm looking for a Android studio emulator engineering GSI build.........
Click to expand...
Click to collapse
All I did was Google "Android studio emulator engineering GSI" as reflected on the following link...
https://www.google.com/search?q=Android+studio+emulator+engineering+GSI
... and the very first result was to the following link...
https://source.android.com/setup/build/gsi
... and if you go to that link, and scroll down a bit, you'll see the category "Downloading GSIs" that provides you with what your looking for.
If it's not on that page, then it's not available (yet) but, It looks like it is available.
Good Luck!
~~~~~~~~~~~~~~~
UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my Enigma Machine {aenigma = Latin for "Riddle" AND Nickname for "My Ex-Wife"}.
I had already looked at that page but the information is confusing. There's a page containing various userdebug builds for download for android pie:
https://ci.android.com/builds/branches/aosp-pie-gsi/grid?
There are three types of builds: eng, userdebug, and user; I'm looking for the eng type, which uses the platform test keys.
The other problem, is that if you follow one of the links you'll land on a artifacts page containing many files that can only be downloaded one by one: https://ci.android.com/builds/submitted/5467499/aosp_arm64-userdebug/latest/
I haven't found an engineering build, only userdebug and I have no ideia on how to download all the files in the artifacts page, but the main problem is that I found no instructions on how to setup an AVD that can be used on Android Studio and Windows 10.
xjpmauricio said:
I had already looked at that page but the information is confusing.........
Click to expand...
Click to collapse
Hmm... I've never, personally, looked into this using this type/specific avenue before myself.
I'm just thinking that, maybe/possibly, either @Qui Peccavit, @Droidriven or even @osm0sis may be able to provide a better answer/guidance to help you out with this.
I do wish you the best of luck with this!
~~~~~~~~~~~~~~~
UNLESS asked to do so, PLEASE don't PM me regarding support. Sent using The ClaRetoX Forum App on my Enigma Machine {aenigma = Latin for "Riddle" AND Nickname for "My Ex-Wife"}.
Out of my wheelhouse, unfortunately. @phhusson is the GSI master.
I think that userdebug builds built by ci.android.com are signed with AOSP test keys, so that's good enough for you?
I don't really know how to plug in Android Studio with it though, but I heard it's quite easy
@phhusson, I just confirmed that a userdebug build uses the platform test keys; I unpacked a system.img from a userdebug build, checked the SystemUI.apk certificate, using keytool -printcert and the SHA1 is: 27:19:6E:38:6B:87:5E:76:AD:F7:00:E7:EA:84:E4:C6:EE:E3:3D:FA (the sha1 from the google platform test keys)
So...all I need to know is, using these files: https://ci.android.com/builds/submitted/5467499/aosp_arm64-userdebug/latest/
How do I create a AVD that I can use on Android Studio in Windows ? Any ideias?
@phhusson, you were right: its easy to get a userdebug build signed with AOSP test keys, they are available for download on Android Studio in the AVD manager section:
Go to Tools > AVD Manager > + Create Virtual Device > Select Phone, Nexus 5X > Next > Select X86 Images > Select Pie, Api Level 28, ABI x86_64, Target Android 9.0. > Next, etc, download and install.
All builds signed with AOSP test keys are identified by having a target name of Android 9.0, Android 8.1, etc. If you select an image, look at the panel on the right; it should say Android Open Source Project, etc.
All of the other builds of target user are identified with Target "Android 9.0 (Google APi's)" or "Android 9.0 (Google Play)", etc, and those are signed with dev keys, not test keys.
Thanks.

Categories

Resources